mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
don't revisit instructions off the beginning of the block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60221 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
956033a4f5
commit
5425f22fa3
@ -132,7 +132,8 @@ bool DSE::runOnBasicBlock(BasicBlock &BB) {
|
||||
|
||||
// If we deleted a store, reinvestigate this instruction.
|
||||
if (deletedStore) {
|
||||
--BBI;
|
||||
if (!isa<TerminatorInst>(BB.begin()))
|
||||
--BBI;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@ -160,7 +161,8 @@ bool DSE::runOnBasicBlock(BasicBlock &BB) {
|
||||
DT.dominates(dep, L))) {
|
||||
|
||||
DeleteDeadInstruction(S);
|
||||
--BBI;
|
||||
if (!isa<TerminatorInst>(BB.begin()))
|
||||
--BBI;
|
||||
NumFastStores++;
|
||||
MadeChange = true;
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user