Lines Matching refs:OldIdxOut
1014 LiveRange::iterator OldIdxOut; in handleMoveDown() local
1054 OldIdxOut = Next; in handleMoveDown()
1055 if (OldIdxOut == E || !SlotIndex::isSameInstr(OldIdx, OldIdxOut->start)) in handleMoveDown()
1058 OldIdxOut = OldIdxIn; in handleMoveDown()
1063 assert(OldIdxOut != E && SlotIndex::isSameInstr(OldIdx, OldIdxOut->start) && in handleMoveDown()
1065 VNInfo *OldIdxVNI = OldIdxOut->valno; in handleMoveDown()
1066 assert(OldIdxVNI->def == OldIdxOut->start && "Inconsistent def"); in handleMoveDown()
1070 SlotIndex NewIdxDef = NewIdx.getRegSlot(OldIdxOut->start.isEarlyClobber()); in handleMoveDown()
1071 if (SlotIndex::isEarlierInstr(NewIdxDef, OldIdxOut->end)) { in handleMoveDown()
1073 OldIdxOut->start = OldIdxVNI->def; in handleMoveDown()
1082 = LR.advanceTo(OldIdxOut, NewIdx.getRegSlot()); in handleMoveDown()
1083 bool OldIdxDefIsDead = OldIdxOut->end.isDead(); in handleMoveDown()
1085 SlotIndex::isEarlierInstr(OldIdxOut->end, NewIdxDef)) { in handleMoveDown()
1088 if (OldIdxOut != LR.begin() && in handleMoveDown()
1089 !SlotIndex::isEarlierInstr(std::prev(OldIdxOut)->end, in handleMoveDown()
1090 OldIdxOut->start)) { in handleMoveDown()
1093 LiveRange::iterator IPrev = std::prev(OldIdxOut); in handleMoveDown()
1095 IPrev->end = OldIdxOut->end; in handleMoveDown()
1098 LiveRange::iterator INext = std::next(OldIdxOut); in handleMoveDown()
1105 INext->start = OldIdxOut->end; in handleMoveDown()
1114 std::copy(std::next(OldIdxOut), E, OldIdxOut); in handleMoveDown()
1128 std::copy(std::next(OldIdxOut), std::next(AfterNewIdx), OldIdxOut); in handleMoveDown()
1163 assert(AfterNewIdx != OldIdxOut && "Inconsistent iterators"); in handleMoveDown()
1164 std::copy(std::next(OldIdxOut), AfterNewIdx, OldIdxOut); in handleMoveDown()
1185 LiveRange::iterator OldIdxOut; in handleMoveUp() local
1203 OldIdxOut = std::next(OldIdxIn); in handleMoveUp()
1204 if (OldIdxOut == E || !SlotIndex::isSameInstr(OldIdx, OldIdxOut->start)) in handleMoveUp()
1207 OldIdxOut = OldIdxIn; in handleMoveUp()
1208 OldIdxIn = OldIdxOut != LR.begin() ? std::prev(OldIdxOut) : E; in handleMoveUp()
1213 assert(OldIdxOut != E && SlotIndex::isSameInstr(OldIdx, OldIdxOut->start) && in handleMoveUp()
1215 VNInfo *OldIdxVNI = OldIdxOut->valno; in handleMoveUp()
1216 assert(OldIdxVNI->def == OldIdxOut->start && "Inconsistent def"); in handleMoveUp()
1217 bool OldIdxDefIsDead = OldIdxOut->end.isDead(); in handleMoveUp()
1220 SlotIndex NewIdxDef = NewIdx.getRegSlot(OldIdxOut->start.isEarlyClobber()); in handleMoveUp()
1230 OldIdxOut->start = NewIdxDef; in handleMoveUp()
1249 *OldIdxOut = LiveRange::Segment(OldIdxIn->start, OldIdxOut->end, in handleMoveUp()
1255 std::copy_backward(NewIdxIn, OldIdxIn, OldIdxOut); in handleMoveUp()
1274 OldIdxOut->start = NewIdxDef; in handleMoveUp()
1285 std::copy_backward(NewIdxOut, OldIdxOut, std::next(OldIdxOut)); in handleMoveUp()