Lines Matching refs:LIS
102 LiveIntervals &LIS) { in convertImplicitDefToConstZero() argument
267 const LiveIntervals &LIS) { in getVRegDef() argument
273 if (const VNInfo *ValNo = LIS.getInterval(Reg).getVNInfoBefore( in getVRegDef()
274 LIS.getInstructionIndex(*Insert))) in getVRegDef()
275 return LIS.getInstructionFromIndex(ValNo->def); in getVRegDef()
285 LiveIntervals &LIS) { in hasOneNonDBGUse() argument
291 const LiveInterval &LI = LIS.getInterval(Reg); in hasOneNonDBGUse()
293 LI.getVNInfoAt(LIS.getInstructionIndex(*Def).getRegSlot()); in hasOneNonDBGUse()
296 const auto &Result = LI.Query(LIS.getInstructionIndex(*I.getParent())); in hasOneNonDBGUse()
439 LiveIntervals &LIS, in oneUseDominatesOtherUses() argument
441 const LiveInterval &LI = LIS.getInterval(Reg); in oneUseDominatesOtherUses()
444 VNInfo *OneUseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*OneUseInst)); in oneUseDominatesOtherUses()
451 VNInfo *UseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*UseInst)); in oneUseDominatesOtherUses()
514 static void shrinkToUses(LiveInterval &LI, LiveIntervals &LIS) { in shrinkToUses() argument
515 if (LIS.shrinkToUses(&LI)) { in shrinkToUses()
517 LIS.splitSeparateComponents(LI, SplitLIs); in shrinkToUses()
525 MachineInstr *Insert, LiveIntervals &LIS, in moveForSingleUse() argument
532 LIS.handleMove(*Def); in moveForSingleUse()
546 LIS.createAndComputeVirtRegInterval(NewReg); in moveForSingleUse()
549 LiveInterval &LI = LIS.getInterval(Reg); in moveForSingleUse()
550 LI.removeSegment(LIS.getInstructionIndex(*Def).getRegSlot(), in moveForSingleUse()
551 LIS.getInstructionIndex(*Op.getParent()).getRegSlot(), in moveForSingleUse()
574 MachineBasicBlock::instr_iterator Insert, LiveIntervals &LIS, in rematerializeCheapDef() argument
587 LIS.InsertMachineInstrInMaps(*Clone); in rematerializeCheapDef()
588 LIS.createAndComputeVirtRegInterval(NewReg); in rematerializeCheapDef()
597 LiveInterval &LI = LIS.getInterval(Reg); in rematerializeCheapDef()
598 shrinkToUses(LI, LIS); in rematerializeCheapDef()
599 IsDead = !LI.liveAt(LIS.getInstructionIndex(Def).getDeadSlot()); in rematerializeCheapDef()
605 SlotIndex Idx = LIS.getInstructionIndex(Def).getRegSlot(); in rematerializeCheapDef()
606 LIS.removePhysRegDefAt(MCRegister::from(WebAssembly::ARGUMENTS), Idx); in rematerializeCheapDef()
607 LIS.removeInterval(Reg); in rematerializeCheapDef()
608 LIS.RemoveMachineInstrFromMaps(Def); in rematerializeCheapDef()
637 MachineInstr *Insert, LiveIntervals &LIS, WebAssemblyFunctionInfo &MFI, in moveAndTeeForMultiUse() argument
648 LIS.handleMove(*Def); in moveAndTeeForMultiUse()
658 SlotIndex TeeIdx = LIS.InsertMachineInstrInMaps(*Tee).getRegSlot(); in moveAndTeeForMultiUse()
659 SlotIndex DefIdx = LIS.getInstructionIndex(*Def).getRegSlot(); in moveAndTeeForMultiUse()
662 LiveInterval &LI = LIS.getInterval(Reg); in moveAndTeeForMultiUse()
667 shrinkToUses(LI, LIS); in moveAndTeeForMultiUse()
670 LIS.createAndComputeVirtRegInterval(TeeReg); in moveAndTeeForMultiUse()
671 LIS.createAndComputeVirtRegInterval(DefReg); in moveAndTeeForMultiUse()
818 auto &LIS = getAnalysis<LiveIntervalsWrapperPass>().getLIS(); in runOnMachineFunction() local
856 MachineInstr *DefI = getVRegDef(Reg, Insert, MRI, LIS); in runOnMachineFunction()
883 if (CanMove && hasOneNonDBGUse(Reg, DefI, MRI, MDT, LIS)) { in runOnMachineFunction()
884 Insert = moveForSingleUse(Reg, Use, DefI, MBB, Insert, LIS, MFI, MRI); in runOnMachineFunction()
894 LIS, MFI, MRI, TII, TRI); in runOnMachineFunction()
896 LIS, MFI)) { in runOnMachineFunction()
897 Insert = moveAndTeeForMultiUse(Reg, Use, DefI, MBB, Insert, LIS, MFI, in runOnMachineFunction()
931 convertImplicitDefToConstZero(Insert, MRI, TII, MF, LIS); in runOnMachineFunction()