• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/

Lines Matching refs:OldIdx

959   SlotIndex OldIdx;
967 SlotIndex OldIdx, SlotIndex NewIdx, bool UpdateFlags)
968 : LIS(LIS), MRI(MRI), TRI(TRI), OldIdx(OldIdx), NewIdx(NewIdx),
981 /// Update all live ranges touched by MI, assuming a move from OldIdx to
984 LLVM_DEBUG(dbgs() << "handleMove " << OldIdx << " -> " << NewIdx << ": "
1031 /// OldIdx to NewIdx.
1046 if (SlotIndex::isEarlierInstr(OldIdx, NewIdx))
1054 /// Update LR to reflect an instruction has been moved downwards from OldIdx
1055 /// to NewIdx (OldIdx < NewIdx).
1058 // Segment going into OldIdx.
1059 LiveRange::iterator OldIdxIn = LR.find(OldIdx.getBaseIndex());
1061 // No value live before or after OldIdx? Nothing to do.
1062 if (OldIdxIn == E || SlotIndex::isEarlierInstr(OldIdx, OldIdxIn->start))
1066 // Do we have a value live-in to OldIdx?
1067 if (SlotIndex::isEarlierInstr(OldIdxIn->start, OldIdx)) {
1079 // Is there a def before NewIdx which is not OldIdx?
1081 if (Next != E && !SlotIndex::isSameInstr(OldIdx, Next->start) &&
1083 // If we are here then OldIdx was just a use but not a def. We only have
1100 bool isKill = SlotIndex::isSameInstr(OldIdx, OldIdxIn->end);
1106 // Did we have a Def at OldIdx?
1108 if (OldIdxOut == E || !SlotIndex::isSameInstr(OldIdx, OldIdxOut->start))
1114 // If we are here then there is a Definition at OldIdx. OldIdxOut points
1116 assert(OldIdxOut != E && SlotIndex::isSameInstr(OldIdx, OldIdxOut->start) &&
1130 // If we are here then we have a Definition at OldIdx which ends before
1139 // OldIdx is not a dead def, and NewIdxDef is inside a new interval.
1150 // The value is live in to OldIdx
1206 // There is an existing def at NewIdx. The def at OldIdx is coalesced into
1227 /// Update LR to reflect an instruction has been moved upwards from OldIdx
1228 /// to NewIdx (NewIdx < OldIdx).
1231 // Segment going into OldIdx.
1232 LiveRange::iterator OldIdxIn = LR.find(OldIdx.getBaseIndex());
1234 // No value live before or after OldIdx? Nothing to do.
1235 if (OldIdxIn == E || SlotIndex::isEarlierInstr(OldIdx, OldIdxIn->start))
1239 // Do we have a value live-in to OldIdx?
1240 if (SlotIndex::isEarlierInstr(OldIdxIn->start, OldIdx)) {
1242 // OldIdx, moreover the value must be live at NewIdx so there is nothing
1244 bool isKill = SlotIndex::isSameInstr(OldIdx, OldIdxIn->end);
1255 // Did we have a Def at OldIdx? If not we are done now.
1257 if (OldIdxOut == E || !SlotIndex::isSameInstr(OldIdx, OldIdxOut->start))
1264 // If we are here then there is a Definition at OldIdx. OldIdxOut points
1266 assert(OldIdxOut != E && SlotIndex::isSameInstr(OldIdx, OldIdxOut->start) &&
1278 // If OldIdx was a dead def remove it.
1286 // Simply remove the dead def at OldIdx.
1293 // Do we have any intermediate Defs between OldIdx and NewIdx?
1296 // OldIdx is not a dead def and NewIdx is before predecessor start.
1306 // If the segment before OldIdx read a value defined earlier than
1398 llvm::lower_bound(LIS.RegMaskSlots, OldIdx);
1399 assert(RI != LIS.RegMaskSlots.end() && *RI == OldIdx.getRegSlot() &&
1400 "No RegMask at OldIdx.");
1410 // Return the last use of reg between NewIdx and OldIdx.
1425 if (InstSlot > LastUse && InstSlot < OldIdx)
1432 // expensive. Scan upwards from OldIdx instead.
1433 assert(Before < OldIdx && "Expected upwards move");
1437 // OldIdx may not correspond to an instruction any longer, so set MII to
1438 // point to the next instruction after OldIdx, or MBB->end().
1441 Indexes->getNextNonNullIndex(OldIdx)))