diff options
author | Duncan Sands <baldrick@free.fr> | 2008-09-30 10:00:30 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-09-30 10:00:30 +0000 |
commit | 2b9adce1d044e7888f8615b82e6661bc499ccb76 (patch) | |
tree | 91ad2001811fa933a93f87d682d9876e8b152904 /llvm/lib/CodeGen/RegAllocLinearScan.cpp | |
parent | e275a665383310efafb25b8b210d6864b9572e03 (diff) | |
download | bcm5719-llvm-2b9adce1d044e7888f8615b82e6661bc499ccb76.tar.gz bcm5719-llvm-2b9adce1d044e7888f8615b82e6661bc499ccb76.zip |
Revert commit 56835 since it breaks the build.
"If a re-materializable instruction has a register
operand, the spiller will change the register operand's
spill weight to HUGE_VAL to avoid it being spilled.
However, if the operand is already in the queue ready
to be spilled, avoid re-materializing it".
llvm-svn: 56837
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLinearScan.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index 7291e12bbea..d834031ae6b 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -879,9 +879,8 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur) if (cur->weight != HUGE_VALF && cur->weight <= minWeight) { DOUT << "\t\t\tspilling(c): " << *cur << '\n'; float SSWeight; - SmallVector<LiveInterval*, 8> spillIs; std::vector<LiveInterval*> added = - li_->addIntervalsForSpills(*cur, spillIs, loopInfo, *vrm_, SSWeight); + li_->addIntervalsForSpills(*cur, loopInfo, *vrm_, SSWeight); addStackInterval(cur, ls_, li_, SSWeight, *vrm_); if (added.empty()) return; // Early exit if all spills were folded. @@ -932,7 +931,7 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur) earliestStart = std::min(earliestStart, sli->beginNumber()); float SSWeight; std::vector<LiveInterval*> newIs = - li_->addIntervalsForSpills(*sli, spillIs, loopInfo, *vrm_, SSWeight); + li_->addIntervalsForSpills(*sli, loopInfo, *vrm_, SSWeight); addStackInterval(sli, ls_, li_, SSWeight, *vrm_); std::copy(newIs.begin(), newIs.end(), std::back_inserter(added)); spilled.insert(sli->reg); |