1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

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 63547ae69e
commit 1674862564

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