summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/ADCE.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-01 05:15:07 +0000
committerChris Lattner <sabre@nondot.org>2004-02-01 05:15:07 +0000
commite400a0976f0ba96ce8e6669e6d5d41a4a56ab408 (patch)
tree534689a60c14193d9480098391561ce9c2c9b574 /lib/Transforms/Scalar/ADCE.cpp
parent676cf8cb1d613d626f826a45b44658ae35f58c7c (diff)
downloadllvm-e400a0976f0ba96ce8e6669e6d5d41a4a56ab408.tar.gz
llvm-e400a0976f0ba96ce8e6669e6d5d41a4a56ab408.tar.bz2
llvm-e400a0976f0ba96ce8e6669e6d5d41a4a56ab408.tar.xz
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
Diffstat (limited to 'lib/Transforms/Scalar/ADCE.cpp')
-rw-r--r--lib/Transforms/Scalar/ADCE.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp
index 32caaf1b44..0bced4104e 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;
}