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 | e5f4a6d9048ecc3894c707e6f71156e89e2400e8 (patch) | |
tree | cf0b10573ecef2faf4856bd874ac9e1b21d3435e /llvm/lib/Transforms | |
parent | 8a33312948c9bfd95332a61943d23c0e5c9ef747 (diff) | |
download | bcm5719-llvm-e5f4a6d9048ecc3894c707e6f71156e89e2400e8.tar.gz bcm5719-llvm-e5f4a6d9048ecc3894c707e6f71156e89e2400e8.zip |
Increase the initial vector size to be equivalent to the size of the Deps
vector. This potentially saves a resizing.
llvm-svn: 149369
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/GVN.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp index 6e928b798a3..d39ef3d688d 100644 --- a/llvm/lib/Transforms/Scalar/GVN.cpp +++ b/llvm/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(); |