[llvm] r277506 - [IRCE] Rename variable; NFC
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 2 12:32:01 PDT 2016
Author: sanjoy
Date: Tue Aug 2 14:32:01 2016
New Revision: 277506
URL: http://llvm.org/viewvc/llvm-project?rev=277506&view=rev
Log:
[IRCE] Rename variable; NFC
There is nothing "Original" about "OriginalLoopInfo".
Modified:
llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp?rev=277506&r1=277505&r2=277506&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp Tue Aug 2 14:32:01 2016
@@ -574,7 +574,7 @@ class LoopConstrainer {
// Information about the original loop we started out with.
Loop &OriginalLoop;
- LoopInfo &OriginalLoopInfo;
+ LoopInfo &LI;
const SCEV *LatchTakenCount;
BasicBlock *OriginalPreheader;
@@ -594,9 +594,9 @@ public:
ScalarEvolution &SE, DominatorTree &DT,
InductiveRangeCheck::Range R)
: F(*L.getHeader()->getParent()), Ctx(L.getHeader()->getContext()),
- SE(SE), DT(DT), OriginalLoop(L), OriginalLoopInfo(LI),
- LatchTakenCount(nullptr), OriginalPreheader(nullptr),
- MainLoopPreheader(nullptr), Range(R), MainLoopStructure(LS) {}
+ SE(SE), DT(DT), OriginalLoop(L), LI(LI), LatchTakenCount(nullptr),
+ OriginalPreheader(nullptr), MainLoopPreheader(nullptr), Range(R),
+ MainLoopStructure(LS) {}
// Entry point for the algorithm. Returns true on success.
bool run();
@@ -1149,7 +1149,7 @@ void LoopConstrainer::addToParentLoopIfN
return;
for (BasicBlock *BB : BBs)
- ParentLoop->addBasicBlockToLoop(BB, OriginalLoopInfo);
+ ParentLoop->addBasicBlockToLoop(BB, LI);
}
bool LoopConstrainer::run() {
@@ -1277,7 +1277,7 @@ bool LoopConstrainer::run() {
addToParentLoopIfNeeded(PostLoop.Blocks);
DT.recalculate(F);
- formLCSSARecursively(OriginalLoop, DT, &OriginalLoopInfo, &SE);
+ formLCSSARecursively(OriginalLoop, DT, &LI, &SE);
return true;
}
More information about the llvm-commits
mailing list