mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
Verify removed in a few more places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
246dbbb8be
commit
ec40d50aa4
@ -1461,6 +1461,7 @@ bool GVN::processBlock(BasicBlock* BB) {
|
||||
DEBUG(cerr << "GVN removed: " << **I);
|
||||
MD->removeInstruction(*I);
|
||||
(*I)->eraseFromParent();
|
||||
DEBUG(verifyRemoved(*I));
|
||||
}
|
||||
toErase.clear();
|
||||
|
||||
@ -1611,6 +1612,7 @@ bool GVN::performPRE(Function& F) {
|
||||
DEBUG(cerr << "GVN PRE removed: " << *CurInst);
|
||||
MD->removeInstruction(CurInst);
|
||||
CurInst->eraseFromParent();
|
||||
DEBUG(verifyRemoved(CurInst));
|
||||
Changed = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user