summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-10 01:21:58 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-10 01:21:58 +0000
commit38f6bd0fc8095ef79a89b3db15ff6dc734ac90e7 (patch)
treeefa693ceeb60b477df8d2442372b45a2e99f5edd /lib/CodeGen/RegAllocLinearScan.cpp
parent581d535af91dd55326250986273eabb495e55119 (diff)
downloadllvm-38f6bd0fc8095ef79a89b3db15ff6dc734ac90e7.tar.gz
llvm-38f6bd0fc8095ef79a89b3db15ff6dc734ac90e7.tar.bz2
llvm-38f6bd0fc8095ef79a89b3db15ff6dc734ac90e7.tar.xz
Make SpillIs an optional pointer. Avoid creating a bunch of temporary SmallVectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index a24fc80cf5..4a9226ccbc 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -1229,8 +1229,8 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur) {
// linearscan.
if (cur->weight != HUGE_VALF && cur->weight <= minWeight) {
DEBUG(dbgs() << "\t\t\tspilling(c): " << *cur << '\n');
- SmallVector<LiveInterval*, 8> spillIs, added;
- spiller_->spill(cur, added, spillIs);
+ SmallVector<LiveInterval*, 8> added;
+ spiller_->spill(cur, added, 0);
std::sort(added.begin(), added.end(), LISorter());
if (added.empty())
@@ -1306,7 +1306,7 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur) {
DEBUG(dbgs() << "\t\t\tspilling(a): " << *sli << '\n');
if (sli->beginIndex() < earliestStart)
earliestStart = sli->beginIndex();
- spiller_->spill(sli, added, spillIs);
+ spiller_->spill(sli, added, &spillIs);
spilled.insert(sli->reg);
}