diff options
| author | Cameron Zwarich <zwarich@apple.com> | 2011-02-17 06:52:07 +0000 |
|---|---|---|
| committer | Cameron Zwarich <zwarich@apple.com> | 2011-02-17 06:52:07 +0000 |
| commit | 83f4cee1999d5fd8cc866b26d6eefe1a131870aa (patch) | |
| tree | 9ae717554f1038829d00b0d12eb559c1d31c4028 | |
| parent | ecd44922abd3cb6d3777c87771dfe7db925dd9ca (diff) | |
| download | bcm5719-llvm-83f4cee1999d5fd8cc866b26d6eefe1a131870aa.tar.gz bcm5719-llvm-83f4cee1999d5fd8cc866b26d6eefe1a131870aa.zip | |
Switch to SmallVector in SimpleRegisterCoalescing for a 3.5% speedup on 403.gcc.
llvm-svn: 125728
| -rw-r--r-- | llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp index b56dd81a3c8..2843c1a5b6d 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -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++; |

