Lines Matching refs:LIS

101                                           LiveIntervals &LIS) {  in convertImplicitDefToConstZero()  argument
266 const LiveIntervals &LIS) { in getVRegDef() argument
272 if (const VNInfo *ValNo = LIS.getInterval(Reg).getVNInfoBefore( in getVRegDef()
273 LIS.getInstructionIndex(*Insert))) in getVRegDef()
274 return LIS.getInstructionFromIndex(ValNo->def); in getVRegDef()
284 LiveIntervals &LIS) { in hasOneNonDBGUse() argument
290 const LiveInterval &LI = LIS.getInterval(Reg); in hasOneNonDBGUse()
292 LI.getVNInfoAt(LIS.getInstructionIndex(*Def).getRegSlot()); in hasOneNonDBGUse()
295 const auto &Result = LI.Query(LIS.getInstructionIndex(*I.getParent())); in hasOneNonDBGUse()
438 LiveIntervals &LIS, in oneUseDominatesOtherUses() argument
440 const LiveInterval &LI = LIS.getInterval(Reg); in oneUseDominatesOtherUses()
443 VNInfo *OneUseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*OneUseInst)); in oneUseDominatesOtherUses()
450 VNInfo *UseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*UseInst)); in oneUseDominatesOtherUses()
511 static void shrinkToUses(LiveInterval &LI, LiveIntervals &LIS) { in shrinkToUses() argument
512 if (LIS.shrinkToUses(&LI)) { in shrinkToUses()
514 LIS.splitSeparateComponents(LI, SplitLIs); in shrinkToUses()
522 MachineInstr *Insert, LiveIntervals &LIS, in moveForSingleUse() argument
529 LIS.handleMove(*Def); in moveForSingleUse()
543 LIS.createAndComputeVirtRegInterval(NewReg); in moveForSingleUse()
546 LiveInterval &LI = LIS.getInterval(Reg); in moveForSingleUse()
547 LI.removeSegment(LIS.getInstructionIndex(*Def).getRegSlot(), in moveForSingleUse()
548 LIS.getInstructionIndex(*Op.getParent()).getRegSlot(), in moveForSingleUse()
571 MachineBasicBlock::instr_iterator Insert, LiveIntervals &LIS, in rematerializeCheapDef() argument
584 LIS.InsertMachineInstrInMaps(*Clone); in rematerializeCheapDef()
585 LIS.createAndComputeVirtRegInterval(NewReg); in rematerializeCheapDef()
594 LiveInterval &LI = LIS.getInterval(Reg); in rematerializeCheapDef()
595 shrinkToUses(LI, LIS); in rematerializeCheapDef()
596 IsDead = !LI.liveAt(LIS.getInstructionIndex(Def).getDeadSlot()); in rematerializeCheapDef()
602 SlotIndex Idx = LIS.getInstructionIndex(Def).getRegSlot(); in rematerializeCheapDef()
603 LIS.removePhysRegDefAt(MCRegister::from(WebAssembly::ARGUMENTS), Idx); in rematerializeCheapDef()
604 LIS.removeInterval(Reg); in rematerializeCheapDef()
605 LIS.RemoveMachineInstrFromMaps(Def); in rematerializeCheapDef()
634 MachineInstr *Insert, LiveIntervals &LIS, WebAssemblyFunctionInfo &MFI, in moveAndTeeForMultiUse() argument
645 LIS.handleMove(*Def); in moveAndTeeForMultiUse()
655 SlotIndex TeeIdx = LIS.InsertMachineInstrInMaps(*Tee).getRegSlot(); in moveAndTeeForMultiUse()
656 SlotIndex DefIdx = LIS.getInstructionIndex(*Def).getRegSlot(); in moveAndTeeForMultiUse()
659 LiveInterval &LI = LIS.getInterval(Reg); in moveAndTeeForMultiUse()
664 shrinkToUses(LI, LIS); in moveAndTeeForMultiUse()
667 LIS.createAndComputeVirtRegInterval(TeeReg); in moveAndTeeForMultiUse()
668 LIS.createAndComputeVirtRegInterval(DefReg); in moveAndTeeForMultiUse()
815 auto &LIS = getAnalysis<LiveIntervals>(); in runOnMachineFunction() local
853 MachineInstr *DefI = getVRegDef(Reg, Insert, MRI, LIS); in runOnMachineFunction()
879 if (CanMove && hasOneNonDBGUse(Reg, DefI, MRI, MDT, LIS)) { in runOnMachineFunction()
880 Insert = moveForSingleUse(Reg, Use, DefI, MBB, Insert, LIS, MFI, MRI); in runOnMachineFunction()
890 LIS, MFI, MRI, TII, TRI); in runOnMachineFunction()
892 LIS, MFI)) { in runOnMachineFunction()
893 Insert = moveAndTeeForMultiUse(Reg, Use, DefI, MBB, Insert, LIS, MFI, in runOnMachineFunction()
927 convertImplicitDefToConstZero(Insert, MRI, TII, MF, LIS); in runOnMachineFunction()