diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-11-29 09:49:23 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-11-29 09:49:23 +0000 |
commit | f85c063ec0694f26f9cbf6ad482da01773b25892 (patch) | |
tree | 24b1741a8bb4f70a9312e2c0043c92f7ddf9591c /llvm/lib/CodeGen/LiveInterval.cpp | |
parent | 8dfcd5975edf09eb74cc7828e2223c498e82967c (diff) | |
download | bcm5719-llvm-f85c063ec0694f26f9cbf6ad482da01773b25892.tar.gz bcm5719-llvm-f85c063ec0694f26f9cbf6ad482da01773b25892.zip |
Replace the odd kill# hack with something less fragile.
llvm-svn: 44434
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveInterval.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index 934cb7beb9b..47216506974 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/lib/CodeGen/LiveInterval.cpp @@ -206,7 +206,7 @@ LiveInterval::addRangeFrom(LiveRange LR, iterator From) { // endpoint as well. if (End > it->end) extendIntervalEndTo(it, End); - else + else if (End < it->end) // Overlapping intervals, there might have been a kill here. removeKill(it->valno, End); return it; @@ -631,6 +631,8 @@ void LiveInterval::print(std::ostream &OS, const MRegisterInfo *MRI) const { if (j != ee-1) OS << " "; } + if (vni->hasPHIKill) + OS << " phi"; OS << ")"; } } |