mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
don't revisit instructions off the beginning of the block.
llvm-svn: 60221
This commit is contained in:
parent
7376e32840
commit
aedb1385c2
@ -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