[llvm-commits] [polly] r152909 - /polly/trunk/lib/IndVarSimplify.cpp
Hongbin Zheng
etherzhhb at gmail.com
Fri Mar 16 01:31:24 PDT 2012
Author: ether
Date: Fri Mar 16 03:31:24 2012
New Revision: 152909
URL: http://llvm.org/viewvc/llvm-project?rev=152909&view=rev
Log:
More AddUsersIfInteresting related fix.
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=152909&r1=152908&r2=152909&view=diff
==============================================================================
--- polly/trunk/lib/IndVarSimplify.cpp (original)
+++ polly/trunk/lib/IndVarSimplify.cpp Fri Mar 16 03:31:24 2012
@@ -1967,8 +1967,11 @@
// loop exit test instruction.
if (IU && NewICmp) {
ICmpInst *NewICmpInst = dyn_cast<ICmpInst>(NewICmp);
- if (NewICmpInst)
- IU->AddUsersIfInteresting(cast<Instruction>(NewICmpInst->getOperand(0)));
+ if (NewICmpInst) {
+ SmallPtrSet<Loop*,16> SimpleLoopNests;
+ IU->AddUsersIfInteresting(cast<Instruction>(NewICmpInst->getOperand(0)),
+ SimpleLoopNests);
+ }
}
// Clean up dead instructions.
Changed |= DeleteDeadPHIs(L->getHeader());
More information about the llvm-commits
mailing list