[llvm-commits] [llvm] r133995 - /llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
Andrew Trick
atrick at apple.com
Mon Jun 27 22:41:52 PDT 2011
Author: atrick
Date: Tue Jun 28 00:41:52 2011
New Revision: 133995
URL: http://llvm.org/viewvc/llvm-project?rev=133995&view=rev
Log:
Cleanup. Fix a stupid variable name.
Modified:
llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp?rev=133995&r1=133994&r2=133995&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp Tue Jun 28 00:41:52 2011
@@ -937,7 +937,7 @@
Builder.SetInsertPoint(Header, Header->begin());
pred_iterator HPB = pred_begin(Header), HPE = pred_end(Header);
PHINode *PN = Builder.CreatePHI(ExpandTy, std::distance(HPB, HPE),
- Twine(Label) + ".iv");
+ Twine(IVName) + ".iv");
rememberInstruction(PN);
// Create the step instructions and populate the PHI.
@@ -973,8 +973,8 @@
}
} else {
IncV = isNegative ?
- Builder.CreateSub(PN, StepV, Twine(Label) + ".iv.next") :
- Builder.CreateAdd(PN, StepV, Twine(Label) + ".iv.next");
+ Builder.CreateSub(PN, StepV, Twine(IVName) + ".iv.next") :
+ Builder.CreateAdd(PN, StepV, Twine(IVName) + ".iv.next");
rememberInstruction(IncV);
}
PN->addIncoming(IncV, Pred);
More information about the llvm-commits
mailing list