From: Cameron Zwarich Date: Tue, 18 Jan 2011 04:41:32 +0000 (+0000) Subject: Make a std::vector a SmallVector<*, 32> like the other vectors in the same X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=443997de8b0eb538aac833390358f30c952f85fc;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 32f778204cf..188693596cb 100644 --- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -723,7 +723,7 @@ void PromoteMem2Reg::DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum, PQ.push(std::make_pair(Node, DomLevels[Node])); } - std::vector > DFBlocks; + SmallVector, 32> DFBlocks; SmallPtrSet Visited; SmallVector Worklist; while (!PQ.empty()) {