forked from OSchip/llvm-project
this pass claims to preserve scev, make sure to tell it about deletions.
llvm-svn: 123247
This commit is contained in:
parent
e5863d6639
commit
d41db8f9cb
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue