this pass claims to preserve scev, make sure to tell it about deletions.

llvm-svn: 123247
This commit is contained in:
Chris Lattner 2011-01-11 18:14:50 +00:00
parent e5863d6639
commit d41db8f9cb
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}