1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Bug fix. ~1U marks the val# dead.

llvm-svn: 40975
This commit is contained in:
Evan Cheng 2007-08-09 23:14:39 +00:00
parent 21c0eac378
commit 0293fe7483

View File

@ -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 = RHSValNoInfo.def;
ValueNumberInfo[VN]->def = ~1U; // Now this val# is dead.
else
ValueNumberInfo[VN] = RHSValNoInfo;
}