]> granicus.if.org Git - llvm/commitdiff
Remove local shadow constant. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 26 Sep 2019 11:30:35 +0000 (11:30 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 26 Sep 2019 11:30:35 +0000 (11:30 +0000)
ValueTracking.cpp already has a local static MaxDepth = 6 constant - this one seems to have been missed when rL124183 landed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372964 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ValueTracking.cpp

index 3249efdf1a1ca51857c3e47adba9ee6cb3d9a4c2..f0b87810ef9a12ddf0d3a68c44c1b24b48c2f011 100644 (file)
@@ -2666,8 +2666,6 @@ static unsigned ComputeNumSignBitsImpl(const Value *V, unsigned Depth,
 /// through SExt instructions only if LookThroughSExt is true.
 bool llvm::ComputeMultiple(Value *V, unsigned Base, Value *&Multiple,
                            bool LookThroughSExt, unsigned Depth) {
-  const unsigned MaxDepth = 6;
-
   assert(V && "No Value?");
   assert(Depth <= MaxDepth && "Limit Search Depth");
   assert(V->getType()->isIntegerTy() && "Not integer or pointer type!");