Switch to SmallVector in SimpleRegisterCoalescing for a 3.5% speedup on 403.gcc.

llvm-svn: 125728
This commit is contained in:
Cameron Zwarich 2011-02-17 06:52:07 +00:00
parent ecd44922ab
commit 83f4cee199
1 changed files with 3 additions and 3 deletions

View File

@ -1425,9 +1425,9 @@ void SimpleRegisterCoalescing::CopyCoalesceInMBB(MachineBasicBlock *MBB,
std::vector<CopyRec> &TryAgain) {
DEBUG(dbgs() << MBB->getName() << ":\n");
std::vector<CopyRec> VirtCopies;
std::vector<CopyRec> PhysCopies;
std::vector<CopyRec> ImpDefCopies;
SmallVector<CopyRec, 8> VirtCopies;
SmallVector<CopyRec, 8> PhysCopies;
SmallVector<CopyRec, 8> ImpDefCopies;
for (MachineBasicBlock::iterator MII = MBB->begin(), E = MBB->end();
MII != E;) {
MachineInstr *Inst = MII++;