mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
Use reserve() to avoid vector reallocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167991 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0e52f46e48
commit
8762a6bc2b
@ -2068,6 +2068,7 @@ void RegisterCoalescer::joinAllIntervals() {
|
||||
assert(WorkList.empty() && LocalWorkList.empty() && "Old data still around.");
|
||||
|
||||
std::vector<MBBPriorityInfo> MBBs;
|
||||
MBBs.reserve(MF->size());
|
||||
for (MachineFunction::iterator I = MF->begin(), E = MF->end();I != E;++I){
|
||||
MachineBasicBlock *MBB = I;
|
||||
MBBs.push_back(MBBPriorityInfo(MBB, Loops->getLoopDepth(MBB),
|
||||
|
Loading…
Reference in New Issue
Block a user