]> granicus.if.org Git - llvm/commitdiff
[LFTR] Remove a stray variable shadow *of the same value* [NFC]
authorPhilip Reames <listmail@philipreames.com>
Wed, 3 Jul 2019 19:08:43 +0000 (19:08 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 3 Jul 2019 19:08:43 +0000 (19:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365072 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/IndVarSimplify.cpp

index b9aca6754d45a2d4ea208ea7695be5db56633479..84a94027b0a9ded31dab5d9eaf426c8207ec4908 100644 (file)
@@ -2359,7 +2359,6 @@ static Value *genLoopLimit(PHINode *IndVar, BasicBlock *ExitingBB,
     assert(AR->getStepRecurrence(*SE)->isOne() && "only handles unit stride");
     // For unit stride, IVCount = Start + ExitCount with 2's complement
     // overflow.
-    const SCEV *IVInit = AR->getStart();
 
     // For integer IVs, truncate the IV before computing IVInit + BECount,
     // unless we know apriori that the limit must be a constant when evaluated