mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 21:50:50 +00:00
Make a std::vector a SmallVector<*, 32> like the other vectors in the same
function. This seems to be about a 1.5% speedup of -scalarrepl on test-suite with SPEC2000 and SPEC2006. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123731 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
daad56a8e3
commit
443997de8b
@ -723,7 +723,7 @@ void PromoteMem2Reg::DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
|
||||
PQ.push(std::make_pair(Node, DomLevels[Node]));
|
||||
}
|
||||
|
||||
std::vector<std::pair<unsigned, BasicBlock*> > DFBlocks;
|
||||
SmallVector<std::pair<unsigned, BasicBlock*>, 32> DFBlocks;
|
||||
SmallPtrSet<DomTreeNode*, 32> Visited;
|
||||
SmallVector<DomTreeNode*, 32> Worklist;
|
||||
while (!PQ.empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user