mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +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:
@@ -2068,6 +2068,7 @@ void RegisterCoalescer::joinAllIntervals() {
|
|||||||
assert(WorkList.empty() && LocalWorkList.empty() && "Old data still around.");
|
assert(WorkList.empty() && LocalWorkList.empty() && "Old data still around.");
|
||||||
|
|
||||||
std::vector<MBBPriorityInfo> MBBs;
|
std::vector<MBBPriorityInfo> MBBs;
|
||||||
|
MBBs.reserve(MF->size());
|
||||||
for (MachineFunction::iterator I = MF->begin(), E = MF->end();I != E;++I){
|
for (MachineFunction::iterator I = MF->begin(), E = MF->end();I != E;++I){
|
||||||
MachineBasicBlock *MBB = I;
|
MachineBasicBlock *MBB = I;
|
||||||
MBBs.push_back(MBBPriorityInfo(MBB, Loops->getLoopDepth(MBB),
|
MBBs.push_back(MBBPriorityInfo(MBB, Loops->getLoopDepth(MBB),
|
||||||
|
Reference in New Issue
Block a user