projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c562f6
)
this pass claims to preserve scev, make sure to tell it about deletions.
author
Chris Lattner
<sabre@nondot.org>
Tue, 11 Jan 2011 18:14:50 +0000
(18:14 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 11 Jan 2011 18:14:50 +0000
(18:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123247
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/LoopSimplify.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/LoopSimplify.cpp
b/lib/Transforms/Utils/LoopSimplify.cpp
index 5ec0f1040e8d2886b430c394162a6c3cbf8bde61..efb4d3661b17f5f76ba12da3a066dcae4b102c56 100644
(file)
--- 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();
}