diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2007-08-08 03:00:28 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2007-08-08 03:00:28 +0000 |
| commit | a8c2f38617ab560d72b4c8536359f3a4b62d5b5c (patch) | |
| tree | 1b0a554213285558b074b942ad21233e25913ae1 /llvm/lib/CodeGen/LiveInterval.cpp | |
| parent | 68de1ae8164b97e839741cbb95aebc30b0e3bb85 (diff) | |
| download | bcm5719-llvm-a8c2f38617ab560d72b4c8536359f3a4b62d5b5c.tar.gz bcm5719-llvm-a8c2f38617ab560d72b4c8536359f3a4b62d5b5c.zip | |
- Each val# can have multiple kills.
- Fix some minor bugs related to special markers on val# def. ~0U means
undefined, ~1U means dead val#.
llvm-svn: 40916
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveInterval.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index a11a8f5e44a..580cf443837 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/lib/CodeGen/LiveInterval.cpp @@ -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; - } } } } |

