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
This commit is contained in:
Bill Wendling 2012-01-31 07:04:52 +00:00
parent 5d8ab0f02b
commit b319f12727

View File

@ -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<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();