From: Bill Wendling Date: Tue, 31 Jan 2012 07:04:52 +0000 (+0000) Subject: Increase the initial vector size to be equivalent to the size of the Deps X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b319f127274291a2f58e1f2a146f4e5a274f1e10;p=oota-llvm.git Increase the initial vector size to be equivalent to the size of the Deps vector. This potentially saves a resizing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149369 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 6e928b798a3..d39ef3d688d 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -1298,8 +1298,8 @@ bool GVN::processNonLocalLoad(LoadInst *LI) { // 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 ValuesPerBlock; - SmallVector UnavailableBlocks; + SmallVector ValuesPerBlock; + SmallVector UnavailableBlocks; for (unsigned i = 0, e = NumDeps; i != e; ++i) { BasicBlock *DepBB = Deps[i].getBB();