Fix the count of the number of instructions removed
authorChris Lattner <sabre@nondot.org>
Sun, 1 Feb 2004 05:15:07 +0000 (05:15 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 1 Feb 2004 05:15:07 +0000 (05:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11049 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ADCE.cpp

index 32caaf1b44608b9adfb5d8fb829d98189edf6fcc..0bced4104ee291e0c05c98e4665a9f33e9e37254 100644 (file)
@@ -144,6 +144,7 @@ bool ADCE::dropReferencesOfDeadInstructionsInLiveBlock(BasicBlock *BB) {
         // Delete the instruction...
         I = BB->getInstList().erase(I);
         Changed = true;
+        ++NumInstRemoved;
       } else {
         ++I;
       }