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 | c3fc7d9ec9b495c8a88cd854247105c296d3aabd (patch) | |
tree | 686b20aa4906f702dcc3c16396faad2990f942ed /lib/CodeGen/LiveInterval.cpp | |
parent | fd8890dbee577fbf20798ccf1709a62e2b46f182 (diff) |
Replace the odd kill# hack with something less fragile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index 934cb7beb9..4721650697 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/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 << ")"; } } |