Skip to content

Commit

Permalink
When updating live range endpoints, make sure to preserve the early c…
Browse files Browse the repository at this point in the history
…lobber bit.

Fixs PR13719.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163107 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lhames committed Sep 3, 2012
1 parent 84451a1 commit 7b23d08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CodeGen/LiveIntervalAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ class LiveIntervals::HMEditor {
SlotIndex LastUse = findLastUseBefore(LI->reg, OldIdx);
if (LastUse != NewIdx)
moveKillFlags(LI->reg, NewIdx, LastUse);
LR->end = LastUse.getRegSlot();
LR->end = LastUse.getRegSlot(LR->end.isEarlyClobber());
}

void moveEnteringDownFrom(SlotIndex OldIdx, IntRangePair& P) {
Expand All @@ -1187,7 +1187,7 @@ class LiveIntervals::HMEditor {
assert(LR->end > OldIdx && "LiveRange does not cover original slot");
moveKillFlags(LI->reg, LR->end, NewIdx);
}
LR->end = NewIdx.getRegSlot();
LR->end = NewIdx.getRegSlot(LR->end.isEarlyClobber());
}
}

Expand Down

0 comments on commit 7b23d08

Please sign in to comment.