1
0
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:
Benjamin Kramer 2012-09-09 16:44:05 +00:00
parent 957f1f617e
commit 56915b8d2f

View File

@ -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;
}