diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-01-31 07:04:52 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-01-31 07:04:52 +0000 |
commit | b319f127274291a2f58e1f2a146f4e5a274f1e10 (patch) | |
tree | bc4d28916df34c6b7e68dc2c0fbf398503334ef4 | |
parent | 5d8ab0f02b3af1a19b46ccc6aa4782451e9dab8b (diff) | |
download | external_llvm-b319f127274291a2f58e1f2a146f4e5a274f1e10.zip external_llvm-b319f127274291a2f58e1f2a146f4e5a274f1e10.tar.gz external_llvm-b319f127274291a2f58e1f2a146f4e5a274f1e10.tar.bz2 |
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
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 6e928b7..d39ef3d 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<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(); |