[llvm-commits] [llvm] r123247 - /llvm/trunk/lib/Transforms/Utils/LoopSimplify.cpp
Chris Lattner
sabre at nondot.org
Tue Jan 11 10:14:50 PST 2011
Author: lattner
Date: Tue Jan 11 12:14:50 2011
New Revision: 123247
URL: http://llvm.org/viewvc/llvm-project?rev=123247&view=rev
Log:
this pass claims to preserve scev, make sure to tell it about deletions.
Modified:
llvm/trunk/lib/Transforms/Utils/LoopSimplify.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LoopSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LoopSimplify.cpp?rev=123247&r1=123246&r2=123247&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LoopSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LoopSimplify.cpp Tue Jan 11 12:14:50 2011
@@ -268,6 +268,7 @@
(PN = dyn_cast<PHINode>(I++)); )
if (Value *V = SimplifyInstruction(PN, 0, DT)) {
if (AA) AA->deleteValue(PN);
+ if (SE) SE->forgetValue(PN);
PN->replaceAllUsesWith(V);
PN->eraseFromParent();
}
More information about the llvm-commits
mailing list