mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
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
This commit is contained in:
parent
676cf8cb1d
commit
e400a0976f
@ -144,6 +144,7 @@ bool ADCE::dropReferencesOfDeadInstructionsInLiveBlock(BasicBlock *BB) {
|
|||||||
// Delete the instruction...
|
// Delete the instruction...
|
||||||
I = BB->getInstList().erase(I);
|
I = BB->getInstList().erase(I);
|
||||||
Changed = true;
|
Changed = true;
|
||||||
|
++NumInstRemoved;
|
||||||
} else {
|
} else {
|
||||||
++I;
|
++I;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user