summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-11 18:14:50 +0000
committerChris Lattner <sabre@nondot.org>2011-01-11 18:14:50 +0000
commitf73b99ab43c36b026a03430a30c329a343cdd77b (patch)
tree619972f6f7ec676344acc4246e45d27013b0a7b8 /lib/Transforms/Utils/LoopSimplify.cpp
parent6c562f69fe7aa5550e7b6594ee4e861f767471b3 (diff)
downloadllvm-f73b99ab43c36b026a03430a30c329a343cdd77b.tar.gz
llvm-f73b99ab43c36b026a03430a30c329a343cdd77b.tar.bz2
llvm-f73b99ab43c36b026a03430a30c329a343cdd77b.tar.xz
this pass claims to preserve scev, make sure to tell it about deletions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r--lib/Transforms/Utils/LoopSimplify.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp
index 5ec0f1040e..efb4d3661b 100644
--- a/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/lib/Transforms/Utils/LoopSimplify.cpp
@@ -268,6 +268,7 @@ ReprocessLoop:
(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();
}