mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 06:06:52 +00:00
Add coalescer asserts.
llvm-svn: 91945
This commit is contained in:
parent
9d1c8ecf05
commit
c971898a40
@ -2246,8 +2246,9 @@ SimpleRegisterCoalescing::JoinIntervals(LiveInterval &LHS, LiveInterval &RHS,
|
||||
continue;
|
||||
|
||||
// Figure out the value # from the RHS.
|
||||
LHSValsDefinedFromRHS[VNI]=
|
||||
RHS.getLiveRangeContaining(VNI->def.getPrevSlot())->valno;
|
||||
LiveRange *lr = RHS.getLiveRangeContaining(VNI->def.getPrevSlot());
|
||||
assert(lr && "Cannot find live range");
|
||||
LHSValsDefinedFromRHS[VNI] = lr->valno;
|
||||
}
|
||||
|
||||
// Loop over the value numbers of the RHS, seeing if any are defined from
|
||||
@ -2264,8 +2265,9 @@ SimpleRegisterCoalescing::JoinIntervals(LiveInterval &LHS, LiveInterval &RHS,
|
||||
continue;
|
||||
|
||||
// Figure out the value # from the LHS.
|
||||
RHSValsDefinedFromLHS[VNI]=
|
||||
LHS.getLiveRangeContaining(VNI->def.getPrevSlot())->valno;
|
||||
LiveRange *lr = LHS.getLiveRangeContaining(VNI->def.getPrevSlot());
|
||||
assert(lr && "Cannot find live range");
|
||||
RHSValsDefinedFromLHS[VNI] = lr->valno;
|
||||
}
|
||||
|
||||
LHSValNoAssignments.resize(LHS.getNumValNums(), -1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user