From: Chris Lattner Date: Sun, 1 Feb 2004 05:15:07 +0000 (+0000) Subject: Fix the count of the number of instructions removed X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e400a0976f0ba96ce8e6669e6d5d41a4a56ab408;p=oota-llvm.git Fix the count of the number of instructions removed git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11049 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index 32caaf1b446..0bced4104ee 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -144,6 +144,7 @@ bool ADCE::dropReferencesOfDeadInstructionsInLiveBlock(BasicBlock *BB) { // Delete the instruction... I = BB->getInstList().erase(I); Changed = true; + ++NumInstRemoved; } else { ++I; }