aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Target/SparcV9/RegAlloc/LiveRange.h9
-rw-r--r--lib/Target/SparcV9/SparcV9RegClassInfo.cpp2
2 files changed, 1 insertions, 10 deletions
diff --git a/lib/Target/SparcV9/RegAlloc/LiveRange.h b/lib/Target/SparcV9/RegAlloc/LiveRange.h
index d6e2cf6..045a910 100644
--- a/lib/Target/SparcV9/RegAlloc/LiveRange.h
+++ b/lib/Target/SparcV9/RegAlloc/LiveRange.h
@@ -40,11 +40,6 @@ class LiveRange : public ValueSet {
int Color; // color assigned to this live range
bool mustSpill; // whether this LR must be spilt
- /// mustSaveAcrossCalls - whether this LR must be saved accross calls
- /// ***TODO REMOVE this
- ///
- bool mustSaveAcrossCalls;
-
/// SuggestedColor - if this LR has a suggested color, can it be
/// really alloated? A suggested color cannot be allocated when the
/// suggested color is volatile and when there are call
@@ -77,7 +72,7 @@ class LiveRange : public ValueSet {
public:
LiveRange() {
Color = SuggestedColor = -1; // not yet colored
- mustSpill = mustSaveAcrossCalls = false;
+ mustSpill = false;
MyRegClass = 0;
UserIGNode = 0;
doesSpanAcrossCalls = false;
@@ -133,8 +128,6 @@ public:
return SpilledStackOffsetFromFP;
}
- inline void markForSaveAcrossCalls() { mustSaveAcrossCalls = true; }
-
inline void setUserIGNode(IGNode *IGN) {
assert(!UserIGNode); UserIGNode = IGN;
}
diff --git a/lib/Target/SparcV9/SparcV9RegClassInfo.cpp b/lib/Target/SparcV9/SparcV9RegClassInfo.cpp
index df4e44c..2e83541 100644
--- a/lib/Target/SparcV9/SparcV9RegClassInfo.cpp
+++ b/lib/Target/SparcV9/SparcV9RegClassInfo.cpp
@@ -113,7 +113,6 @@ void SparcV9IntRegClass::colorIGNode(IGNode * Node,
// get the live range corresponding to live var
// since LR span across calls, must save across calls
//
- LR->markForSaveAcrossCalls();
if (DEBUG_RA)
std::cerr << "\n Colored after SECOND search with col " << c;
}
@@ -306,7 +305,6 @@ void SparcV9FloatRegClass::colorIGNode(IGNode * Node,
if (ColorFound >= 0) {
LR->setColor(ColorFound); // first color found in preferred order
- LR->markForSaveAcrossCalls();
} else {
// we are here because no color could be found
LR->markForSpill(); // no color found - must spill