Make a std::vector a SmallVector<*, 32> like the other vectors in the same
authorCameron Zwarich <zwarich@apple.com>
Tue, 18 Jan 2011 04:41:32 +0000 (04:41 +0000)
committerCameron Zwarich <zwarich@apple.com>
Tue, 18 Jan 2011 04:41:32 +0000 (04:41 +0000)
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

lib/Transforms/Utils/PromoteMemoryToRegister.cpp

index 32f778204cf7780b47303f8c595b50246a9ed20c..188693596cb305af3f727b709be038d295c90f46 100644 (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()) {