mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
DSE: Poking holes into a SetVector is expensive, avoid it if possible.
llvm-svn: 163480
This commit is contained in:
parent
957f1f617e
commit
56915b8d2f
@ -775,15 +775,15 @@ bool DSE::handleEndBlock(BasicBlock &BB) {
|
||||
LiveAllocas.push_back(*I);
|
||||
}
|
||||
|
||||
// If all of the allocas were clobbered by the call then we're not going
|
||||
// to find anything else to process.
|
||||
if (DeadStackObjects.size() == LiveAllocas.size())
|
||||
break;
|
||||
|
||||
for (SmallVector<Value*, 8>::iterator I = LiveAllocas.begin(),
|
||||
E = LiveAllocas.end(); I != E; ++I)
|
||||
DeadStackObjects.remove(*I);
|
||||
|
||||
// If all of the allocas were clobbered by the call then we're not going
|
||||
// to find anything else to process.
|
||||
if (DeadStackObjects.empty())
|
||||
break;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user