diff options
author | Chris Lattner <sabre@nondot.org> | 2011-01-11 18:14:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-01-11 18:14:50 +0000 |
commit | d41db8f9cb9bc85d60ea4ce4e2abcef010238a6a (patch) | |
tree | 30119314bfdac618b6e8b819f8e9ad603b411b4b /llvm/lib/Transforms/Utils/LoopSimplify.cpp | |
parent | e5863d663974cfb26a9e387c3c5b0787b47f1403 (diff) | |
download | bcm5719-llvm-d41db8f9cb9bc85d60ea4ce4e2abcef010238a6a.tar.gz bcm5719-llvm-d41db8f9cb9bc85d60ea4ce4e2abcef010238a6a.zip |
this pass claims to preserve scev, make sure to tell it about deletions.
llvm-svn: 123247
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopSimplify.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp index 5ec0f1040e8..efb4d3661b1 100644 --- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp +++ b/llvm/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(); } |