mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-28 22:55:52 +00:00
Remove mustSaveAcrossCalls flag, which isn't ever read, and its mutator,
markForSaveAcrossCalls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
acb7444b05
commit
fc63adb1b9
@ -40,11 +40,6 @@ class LiveRange : public ValueSet {
|
|||||||
int Color; // color assigned to this live range
|
int Color; // color assigned to this live range
|
||||||
bool mustSpill; // whether this LR must be spilt
|
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
|
/// SuggestedColor - if this LR has a suggested color, can it be
|
||||||
/// really alloated? A suggested color cannot be allocated when the
|
/// really alloated? A suggested color cannot be allocated when the
|
||||||
/// suggested color is volatile and when there are call
|
/// suggested color is volatile and when there are call
|
||||||
@ -77,7 +72,7 @@ class LiveRange : public ValueSet {
|
|||||||
public:
|
public:
|
||||||
LiveRange() {
|
LiveRange() {
|
||||||
Color = SuggestedColor = -1; // not yet colored
|
Color = SuggestedColor = -1; // not yet colored
|
||||||
mustSpill = mustSaveAcrossCalls = false;
|
mustSpill = false;
|
||||||
MyRegClass = 0;
|
MyRegClass = 0;
|
||||||
UserIGNode = 0;
|
UserIGNode = 0;
|
||||||
doesSpanAcrossCalls = false;
|
doesSpanAcrossCalls = false;
|
||||||
@ -133,8 +128,6 @@ public:
|
|||||||
return SpilledStackOffsetFromFP;
|
return SpilledStackOffsetFromFP;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void markForSaveAcrossCalls() { mustSaveAcrossCalls = true; }
|
|
||||||
|
|
||||||
inline void setUserIGNode(IGNode *IGN) {
|
inline void setUserIGNode(IGNode *IGN) {
|
||||||
assert(!UserIGNode); UserIGNode = IGN;
|
assert(!UserIGNode); UserIGNode = IGN;
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,6 @@ void SparcV9IntRegClass::colorIGNode(IGNode * Node,
|
|||||||
// get the live range corresponding to live var
|
// get the live range corresponding to live var
|
||||||
// since LR span across calls, must save across calls
|
// since LR span across calls, must save across calls
|
||||||
//
|
//
|
||||||
LR->markForSaveAcrossCalls();
|
|
||||||
if (DEBUG_RA)
|
if (DEBUG_RA)
|
||||||
std::cerr << "\n Colored after SECOND search with col " << c;
|
std::cerr << "\n Colored after SECOND search with col " << c;
|
||||||
}
|
}
|
||||||
@ -306,7 +305,6 @@ void SparcV9FloatRegClass::colorIGNode(IGNode * Node,
|
|||||||
|
|
||||||
if (ColorFound >= 0) {
|
if (ColorFound >= 0) {
|
||||||
LR->setColor(ColorFound); // first color found in preferred order
|
LR->setColor(ColorFound); // first color found in preferred order
|
||||||
LR->markForSaveAcrossCalls();
|
|
||||||
} else {
|
} else {
|
||||||
// we are here because no color could be found
|
// we are here because no color could be found
|
||||||
LR->markForSpill(); // no color found - must spill
|
LR->markForSpill(); // no color found - must spill
|
||||||
|
Loading…
Reference in New Issue
Block a user