aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-12-22 21:57:30 +0000
committerBill Wendling <isanbard@gmail.com>2008-12-22 21:57:30 +0000
commitec40d50aa41795adcf62ba30e3ddebb7c5c9f339 (patch)
tree787fab9aecc637ea66ebaeaef9e7284e2dd5ee80 /lib
parent246dbbb8befcb04abb5451d73b5d94f7d21f22c6 (diff)
downloadexternal_llvm-ec40d50aa41795adcf62ba30e3ddebb7c5c9f339.zip
external_llvm-ec40d50aa41795adcf62ba30e3ddebb7c5c9f339.tar.gz
external_llvm-ec40d50aa41795adcf62ba30e3ddebb7c5c9f339.tar.bz2
Verify removed in a few more places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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 8a3b384..1d7a107 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;
}
}