mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user