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:
parent
63547ae69e
commit
1674862564
@ -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
Block a user