From: Chris Lattner Date: Tue, 11 Jan 2011 18:14:50 +0000 (+0000) Subject: this pass claims to preserve scev, make sure to tell it about deletions. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f73b99ab43c36b026a03430a30c329a343cdd77b;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 5ec0f1040e8..efb4d3661b1 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -268,6 +268,7 @@ ReprocessLoop: (PN = dyn_cast(I++)); ) if (Value *V = SimplifyInstruction(PN, 0, DT)) { if (AA) AA->deleteValue(PN); + if (SE) SE->forgetValue(PN); PN->replaceAllUsesWith(V); PN->eraseFromParent(); }