forked from OSchip/llvm-project
parent
34c863a031
commit
3bfafcba10
|
@ -1319,8 +1319,14 @@ private:
|
|||
void moveEnteringDownFrom(SlotIndex OldIdx, IntRangePair& P) {
|
||||
LiveInterval* LI = P.first;
|
||||
LiveRange* LR = P.second;
|
||||
// Extend the LiveRange if NewIdx is past the end.
|
||||
if (NewIdx > LR->end) {
|
||||
moveKillFlags(LI->reg, LR->end, NewIdx);
|
||||
// Move kill flags if OldIdx was not originally the end
|
||||
// (otherwise LR->end points to an invalid slot).
|
||||
if (LR->end.getRegSlot() != OldIdx.getRegSlot()) {
|
||||
assert(LR->end > OldIdx && "LiveRange does not cover original slot");
|
||||
moveKillFlags(LI->reg, LR->end, NewIdx);
|
||||
}
|
||||
LR->end = NewIdx.getRegSlot();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue