mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
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:
parent
5d8ab0f02b
commit
b319f12727
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user