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.

llvm-svn: 123731
This commit is contained in:
Cameron Zwarich 2011-01-18 04:41:32 +00:00
parent ecd5b9abe9
commit 6968c41ac8
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {