mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-26 07:34:14 +00:00
Switch to SmallVector in SimpleRegisterCoalescing for a 3.5% speedup on 403.gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125728 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
61a733434d
commit
2598b1f4ac
@ -1425,9 +1425,9 @@ void SimpleRegisterCoalescing::CopyCoalesceInMBB(MachineBasicBlock *MBB,
|
|||||||
std::vector<CopyRec> &TryAgain) {
|
std::vector<CopyRec> &TryAgain) {
|
||||||
DEBUG(dbgs() << MBB->getName() << ":\n");
|
DEBUG(dbgs() << MBB->getName() << ":\n");
|
||||||
|
|
||||||
std::vector<CopyRec> VirtCopies;
|
SmallVector<CopyRec, 8> VirtCopies;
|
||||||
std::vector<CopyRec> PhysCopies;
|
SmallVector<CopyRec, 8> PhysCopies;
|
||||||
std::vector<CopyRec> ImpDefCopies;
|
SmallVector<CopyRec, 8> ImpDefCopies;
|
||||||
for (MachineBasicBlock::iterator MII = MBB->begin(), E = MBB->end();
|
for (MachineBasicBlock::iterator MII = MBB->begin(), E = MBB->end();
|
||||||
MII != E;) {
|
MII != E;) {
|
||||||
MachineInstr *Inst = MII++;
|
MachineInstr *Inst = MII++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user