summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-04-28 19:19:11 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-04-28 19:19:11 +0000
commit6053899aa0a2fbe9c3a53585f4d97f000e0ffc8a (patch)
treea635dac64c5a8d3ede67ea901d9f664397ddab30 /llvm/lib/CodeGen
parent4fe0e1908ecc28a59e8764d6f5b5460ecc4166a0 (diff)
downloadbcm5719-llvm-6053899aa0a2fbe9c3a53585f4d97f000e0ffc8a.tar.gz
bcm5719-llvm-6053899aa0a2fbe9c3a53585f4d97f000e0ffc8a.zip
Don't update spill weights when joining intervals.
We don't compute spill weights until after coalescing anyway. llvm-svn: 155766
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp
index eb1e9762c5d..aa44d3738ed 100644
--- a/llvm/lib/CodeGen/LiveInterval.cpp
+++ b/llvm/lib/CodeGen/LiveInterval.cpp
@@ -436,8 +436,6 @@ void LiveInterval::join(LiveInterval &Other,
assert(I->valno && "Adding a dead range?");
InsertPos = addRangeFrom(*I, InsertPos);
}
-
- ComputeJoinedWeight(Other);
}
/// MergeRangesInAsValue - Merge all of the intervals in RHS into this live
@@ -566,29 +564,6 @@ unsigned LiveInterval::getSize() const {
return Sum;
}
-/// ComputeJoinedWeight - Set the weight of a live interval Joined
-/// after Other has been merged into it.
-void LiveInterval::ComputeJoinedWeight(const LiveInterval &Other) {
- // If either of these intervals was spilled, the weight is the
- // weight of the non-spilled interval. This can only happen with
- // iterative coalescers.
-
- if (Other.weight != HUGE_VALF) {
- weight += Other.weight;
- }
- else if (weight == HUGE_VALF &&
- !TargetRegisterInfo::isPhysicalRegister(reg)) {
- // Remove this assert if you have an iterative coalescer
- assert(0 && "Joining to spilled interval");
- weight = Other.weight;
- }
- else {
- // Otherwise the weight stays the same
- // Remove this assert if you have an iterative coalescer
- assert(0 && "Joining from spilled interval");
- }
-}
-
raw_ostream& llvm::operator<<(raw_ostream& os, const LiveRange &LR) {
return os << '[' << LR.start << ',' << LR.end << ':' << LR.valno->id << ")";
}
OpenPOWER on IntegriCloud