mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
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
This commit is contained in:
parent
6c562f69fe
commit
f73b99ab43
@ -268,6 +268,7 @@ ReprocessLoop:
|
|||||||
(PN = dyn_cast<PHINode>(I++)); )
|
(PN = dyn_cast<PHINode>(I++)); )
|
||||||
if (Value *V = SimplifyInstruction(PN, 0, DT)) {
|
if (Value *V = SimplifyInstruction(PN, 0, DT)) {
|
||||||
if (AA) AA->deleteValue(PN);
|
if (AA) AA->deleteValue(PN);
|
||||||
|
if (SE) SE->forgetValue(PN);
|
||||||
PN->replaceAllUsesWith(V);
|
PN->replaceAllUsesWith(V);
|
||||||
PN->eraseFromParent();
|
PN->eraseFromParent();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user