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/SimpleRegisterCoalescing.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/SimpleRegisterCoalescing.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp index a37a00545f6..cead5e5240e 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -132,7 +132,7 @@ bool SimpleRegisterCoalescing::AdjustCopiesBackFrom(LiveInterval &IntA, LiveInte // We are about to delete CopyMI, so need to remove it as the 'instruction // that defines this value #'. Update the the valnum with the new defining // instruction #. - IntB.setValueNumberInfo(BValNo, LiveInterval::VNInfo(FillerStart, ~0U, 0)); + IntB.setValueNumberInfo(BValNo, LiveInterval::VNInfo(FillerStart, 0)); // Okay, we can merge them. We need to insert a new liverange: // [ValLR.end, BLR.begin) of either value number, then we merge the @@ -645,7 +645,7 @@ bool SimpleRegisterCoalescing::JoinIntervals(LiveInterval &LHS, LiveInterval &RH // Otherwise, use the specified value #. LHSValNoAssignments[VN] = RHSValID; if (VN != (unsigned)RHSValID) - ValueNumberInfo[VN].def = ~1U; + ValueNumberInfo[VN].def = RHSValNoInfo.def; else ValueNumberInfo[VN] = RHSValNoInfo; } |

