From e400a0976f0ba96ce8e6669e6d5d41a4a56ab408 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 1 Feb 2004 05:15:07 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/ADCE.cpp | 1 + 1 file changed, 1 insertion(+) 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; }