projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
676cf8c
)
Fix the count of the number of instructions removed
author
Chris Lattner
<sabre@nondot.org>
Sun, 1 Feb 2004 05:15:07 +0000
(
05:15
+0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/ADCE.cpp
b/lib/Transforms/Scalar/ADCE.cpp
index 32caaf1b44608b9adfb5d8fb829d98189edf6fcc..0bced4104ee291e0c05c98e4665a9f33e9e37254 100644
(file)
--- 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;
}