[llvm-commits] [polly] r153317 - /polly/trunk/lib/IndVarSimplify.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Fri Mar 23 01:02:15 PDT 2012
Author: grosser
Date: Fri Mar 23 03:02:15 2012
New Revision: 153317
URL: http://llvm.org/viewvc/llvm-project?rev=153317&view=rev
Log:
IndVarSimplify: Adapt to changes in LLVM trunk
Contributed-By: Andrew Trick <atrick at apple.com>
Modified:
polly/trunk/lib/IndVarSimplify.cpp
Modified: polly/trunk/lib/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/IndVarSimplify.cpp?rev=153317&r1=153316&r2=153317&view=diff
==============================================================================
--- polly/trunk/lib/IndVarSimplify.cpp (original)
+++ polly/trunk/lib/IndVarSimplify.cpp Fri Mar 23 03:02:15 2012
@@ -447,10 +447,8 @@
}
// Add a new IVUsers entry for the newly-created integer PHI.
- if (IU) {
- SmallPtrSet<Loop*,16> SimpleLoopNests;
- IU->AddUsersIfInteresting(NewPHI, SimpleLoopNests);
- }
+ if (IU)
+ IU->AddUsersIfInteresting(NewPHI);
Changed = true;
}
@@ -1969,11 +1967,8 @@
// loop exit test instruction.
if (IU && NewICmp) {
ICmpInst *NewICmpInst = dyn_cast<ICmpInst>(NewICmp);
- if (NewICmpInst) {
- SmallPtrSet<Loop*,16> SimpleLoopNests;
- IU->AddUsersIfInteresting(cast<Instruction>(NewICmpInst->getOperand(0)),
- SimpleLoopNests);
- }
+ if (NewICmpInst)
+ IU->AddUsersIfInteresting(cast<Instruction>(NewICmpInst->getOperand(0)));
}
// Clean up dead instructions.
Changed |= DeleteDeadPHIs(L->getHeader());
More information about the llvm-commits
mailing list