summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-09-30 10:00:30 +0000
committerDuncan Sands <baldrick@free.fr>2008-09-30 10:00:30 +0000
commit2b9adce1d044e7888f8615b82e6661bc499ccb76 (patch)
tree91ad2001811fa933a93f87d682d9876e8b152904 /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
parente275a665383310efafb25b8b210d6864b9572e03 (diff)
downloadbcm5719-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/SimpleRegisterCoalescing.cpp')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 86065f069f7..bdc37b16b6a 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -2361,8 +2361,7 @@ bool SimpleRegisterCoalescing::runOnMachineFunction(MachineFunction &fn) {
LI.weight = HUGE_VALF;
else {
bool isLoad = false;
- SmallVector<LiveInterval*, 4> SpillIs;
- if (li_->isReMaterializable(LI, SpillIs, isLoad)) {
+ if (li_->isReMaterializable(LI, isLoad)) {
// If all of the definitions of the interval are re-materializable,
// it is a preferred candidate for spilling. If non of the defs are
// loads, then it's potentially very cheap to re-materialize.
OpenPOWER on IntegriCloud