mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
- Each val# can have multiple kills.
- Fix some minor bugs related to special markers on val# def. ~0U means undefined, ~1U means dead val#. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -300,7 +300,7 @@ void LiveInterval::join(LiveInterval &Other, int *LHSValNoAssignments,
|
||||
// we want to avoid the interval scan if not.
|
||||
bool MustMapCurValNos = false;
|
||||
for (unsigned i = 0, e = getNumValNums(); i != e; ++i) {
|
||||
if (ValueNumberInfo[i].def == ~1U) continue; // tombstone value #
|
||||
//if (ValueNumberInfo[i].def == ~1U) continue; // tombstone value #
|
||||
if (i != (unsigned)LHSValNoAssignments[i]) {
|
||||
MustMapCurValNos = true;
|
||||
break;
|
||||
@ -508,14 +508,11 @@ void LiveInterval::print(std::ostream &OS, const MRegisterInfo *MRI) const {
|
||||
OS << i << "@";
|
||||
if (ValueNumberInfo[i].def == ~0U) {
|
||||
OS << "?";
|
||||
} else if (ValueNumberInfo[i].def == ~1U) {
|
||||
OS << "x";
|
||||
} else {
|
||||
OS << ValueNumberInfo[i].def;
|
||||
}
|
||||
if (ValueNumberInfo[i].kill == ~0U) {
|
||||
OS << ",?";
|
||||
} else {
|
||||
OS << "," << ValueNumberInfo[i].kill;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user