[llvm-commits] [llvm] r123731 - /llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
Cameron Zwarich
zwarich at apple.com
Mon Jan 17 20:41:32 PST 2011
Author: zwarich
Date: Mon Jan 17 22:41:32 2011
New Revision: 123731
URL: http://llvm.org/viewvc/llvm-project?rev=123731&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
Modified: llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp?rev=123731&r1=123730&r2=123731&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/PromoteMemoryToRegister.cpp Mon Jan 17 22:41:32 2011
@@ -723,7 +723,7 @@
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()) {
More information about the llvm-commits
mailing list