From 51a505fe3020be81a075c8c026f12e1cca04fda3 Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Wed, 3 Jul 2019 19:08:43 +0000 Subject: [PATCH] [LFTR] Remove a stray variable shadow *of the same value* [NFC] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365072 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/IndVarSimplify.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index b9aca6754d4..84a94027b0a 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -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 -- 2.11.0