diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-10 01:21:58 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-10 01:21:58 +0000 |
commit | c6cc4850515bb3b430838a1a238827eea827a1bb (patch) | |
tree | 720aa21c756cabf1e663638b6aaae3645a82c459 /llvm/lib/CodeGen/RegAllocBasic.cpp | |
parent | 7c58d35240bb76dafac8ad97bfa7e71c32cdf69a (diff) | |
download | bcm5719-llvm-c6cc4850515bb3b430838a1a238827eea827a1bb.tar.gz bcm5719-llvm-c6cc4850515bb3b430838a1a238827eea827a1bb.zip |
Make SpillIs an optional pointer. Avoid creating a bunch of temporary SmallVectors.
llvm-svn: 127388
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBasic.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocBasic.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBasic.cpp b/llvm/lib/CodeGen/RegAllocBasic.cpp index 6923908a32d..81a43d8863c 100644 --- a/llvm/lib/CodeGen/RegAllocBasic.cpp +++ b/llvm/lib/CodeGen/RegAllocBasic.cpp @@ -344,7 +344,7 @@ void RegAllocBase::spillReg(LiveInterval& VirtReg, unsigned PhysReg, unassign(SpilledVReg, PhysReg); // Spill the extracted interval. - spiller().spill(&SpilledVReg, SplitVRegs, PendingSpills); + spiller().spill(&SpilledVReg, SplitVRegs, &PendingSpills); } // After extracting segments, the query's results are invalid. But keep the // contents valid until we're done accessing pendingSpills. @@ -469,9 +469,7 @@ unsigned RABasic::selectOrSplit(LiveInterval &VirtReg, } // No other spill candidates were found, so spill the current VirtReg. DEBUG(dbgs() << "spilling: " << VirtReg << '\n'); - SmallVector<LiveInterval*, 1> pendingSpills; - - spiller().spill(&VirtReg, SplitVRegs, pendingSpills); + spiller().spill(&VirtReg, SplitVRegs, 0); // The live virtual register requesting allocation was spilled, so tell // the caller not to allocate anything during this round. |