From ec40d50aa41795adcf62ba30e3ddebb7c5c9f339 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 22 Dec 2008 21:57:30 +0000 Subject: [PATCH] Verify removed in a few more places. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61349 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/GVN.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } }