[llvm-commits] [llvm] r149369 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Bill Wendling
isanbard at gmail.com
Mon Jan 30 23:04:52 PST 2012
Author: void
Date: Tue Jan 31 01:04:52 2012
New Revision: 149369
URL: http://llvm.org/viewvc/llvm-project?rev=149369&view=rev
Log:
Increase the initial vector size to be equivalent to the size of the Deps
vector. This potentially saves a resizing.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=149369&r1=149368&r2=149369&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Tue Jan 31 01:04:52 2012
@@ -1298,8 +1298,8 @@
// where we have a value available in repl, also keep track of whether we see
// dependencies that produce an unknown value for the load (such as a call
// that could potentially clobber the load).
- SmallVector<AvailableValueInBlock, 16> ValuesPerBlock;
- SmallVector<BasicBlock*, 16> UnavailableBlocks;
+ SmallVector<AvailableValueInBlock, 64> ValuesPerBlock;
+ SmallVector<BasicBlock*, 64> UnavailableBlocks;
for (unsigned i = 0, e = NumDeps; i != e; ++i) {
BasicBlock *DepBB = Deps[i].getBB();
More information about the llvm-commits
mailing list