aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Transforms/Scalar/GVN.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp
index 8a3b384b06..1d7a107db2 100644
--- a/lib/Transforms/Scalar/GVN.cpp
+++ b/lib/Transforms/Scalar/GVN.cpp
@@ -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;
}
}