[llvm] r365072 - [LFTR] Remove a stray variable shadow *of the same value* [NFC]

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 12:08:43 PDT 2019


Author: reames
Date: Wed Jul  3 12:08:43 2019
New Revision: 365072

URL: http://llvm.org/viewvc/llvm-project?rev=365072&view=rev
Log:
[LFTR] Remove a stray variable shadow *of the same value* [NFC]


Modified:
    llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=365072&r1=365071&r2=365072&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Wed Jul  3 12:08:43 2019
@@ -2359,7 +2359,6 @@ static Value *genLoopLimit(PHINode *IndV
     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




More information about the llvm-commits mailing list