diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-11-12 06:35:08 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-11-12 06:35:08 +0000 |
commit | f2fbca68f868122d6df0bfc9952b4e4c3dfb60b7 (patch) | |
tree | 197e4d100a9d1fe7658b502eb4e24c0d987877b3 /lib/CodeGen/RegAllocLinearScan.cpp | |
parent | e6e1384c57e8c4ca99d881c35ebe6af01c177bcb (diff) | |
download | external_llvm-f2fbca68f868122d6df0bfc9952b4e4c3dfb60b7.zip external_llvm-f2fbca68f868122d6df0bfc9952b4e4c3dfb60b7.tar.gz external_llvm-f2fbca68f868122d6df0bfc9952b4e4c3dfb60b7.tar.bz2 |
Refactor some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLinearScan.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index 98b62ce..e77a9e6 100644 --- a/lib/CodeGen/RegAllocLinearScan.cpp +++ b/lib/CodeGen/RegAllocLinearScan.cpp @@ -685,7 +685,7 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur) if (cur->weight != HUGE_VALF && cur->weight <= minWeight) { DOUT << "\t\t\tspilling(c): " << *cur << '\n'; std::vector<LiveInterval*> added = - li_->addIntervalsForSpills(*cur, *vrm_, cur->reg); + li_->addIntervalsForSpills(*cur, *vrm_); if (added.empty()) return; // Early exit if all spills were folded. @@ -737,7 +737,7 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur) DOUT << "\t\t\tspilling(a): " << *i->first << '\n'; earliestStart = std::min(earliestStart, i->first->beginNumber()); std::vector<LiveInterval*> newIs = - li_->addIntervalsForSpills(*i->first, *vrm_, reg); + li_->addIntervalsForSpills(*i->first, *vrm_); std::copy(newIs.begin(), newIs.end(), std::back_inserter(added)); spilled.insert(reg); } @@ -750,7 +750,7 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur) DOUT << "\t\t\tspilling(i): " << *i->first << '\n'; earliestStart = std::min(earliestStart, i->first->beginNumber()); std::vector<LiveInterval*> newIs = - li_->addIntervalsForSpills(*i->first, *vrm_, reg); + li_->addIntervalsForSpills(*i->first, *vrm_); std::copy(newIs.begin(), newIs.end(), std::back_inserter(added)); spilled.insert(reg); } |