mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-29 15:04:57 +00:00
Use a SmallSetVector instead of a SetVector; this code showed up as a
malloc caller in a profile. llvm-svn: 95407
This commit is contained in:
parent
d43a7714c9
commit
8142ba6bbb
@ -176,8 +176,9 @@ ReprocessLoop:
|
||||
SmallVector<BasicBlock*, 8> ExitBlocks;
|
||||
L->getExitBlocks(ExitBlocks);
|
||||
|
||||
SetVector<BasicBlock*> ExitBlockSet(ExitBlocks.begin(), ExitBlocks.end());
|
||||
for (SetVector<BasicBlock*>::iterator I = ExitBlockSet.begin(),
|
||||
SmallSetVector<BasicBlock *, 8> ExitBlockSet(ExitBlocks.begin(),
|
||||
ExitBlocks.end());
|
||||
for (SmallSetVector<BasicBlock *, 8>::iterator I = ExitBlockSet.begin(),
|
||||
E = ExitBlockSet.end(); I != E; ++I) {
|
||||
BasicBlock *ExitBlock = *I;
|
||||
for (pred_iterator PI = pred_begin(ExitBlock), PE = pred_end(ExitBlock);
|
||||
|
Loading…
Reference in New Issue
Block a user