From: Bill Wendling Date: Mon, 22 Dec 2008 21:57:30 +0000 (+0000) Subject: Verify removed in a few more places. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=ec40d50aa41795adcf62ba30e3ddebb7c5c9f339 Verify removed in a few more places. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61349 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 8a3b384b063..1d7a107db23 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; } }