mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add coalescer asserts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91945 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
24b34f8f3e
commit
4b6677f1c6
@ -2246,8 +2246,9 @@ SimpleRegisterCoalescing::JoinIntervals(LiveInterval &LHS, LiveInterval &RHS,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Figure out the value # from the RHS.
|
// Figure out the value # from the RHS.
|
||||||
LHSValsDefinedFromRHS[VNI]=
|
LiveRange *lr = RHS.getLiveRangeContaining(VNI->def.getPrevSlot());
|
||||||
RHS.getLiveRangeContaining(VNI->def.getPrevSlot())->valno;
|
assert(lr && "Cannot find live range");
|
||||||
|
LHSValsDefinedFromRHS[VNI] = lr->valno;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Loop over the value numbers of the RHS, seeing if any are defined from
|
// 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;
|
continue;
|
||||||
|
|
||||||
// Figure out the value # from the LHS.
|
// Figure out the value # from the LHS.
|
||||||
RHSValsDefinedFromLHS[VNI]=
|
LiveRange *lr = LHS.getLiveRangeContaining(VNI->def.getPrevSlot());
|
||||||
LHS.getLiveRangeContaining(VNI->def.getPrevSlot())->valno;
|
assert(lr && "Cannot find live range");
|
||||||
|
RHSValsDefinedFromLHS[VNI] = lr->valno;
|
||||||
}
|
}
|
||||||
|
|
||||||
LHSValNoAssignments.resize(LHS.getNumValNums(), -1);
|
LHSValNoAssignments.resize(LHS.getNumValNums(), -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user