Lines Matching refs:LIS

87   LiveIntervals &LIS;  member in __anon689c7d9e0111::HoistSpillHelper
140 : MF(mf), LIS(pass.getAnalysis<LiveIntervals>()), in HoistSpillHelper()
147 IPA(LIS, mf.getNumBlockIDs()) {} in HoistSpillHelper()
158 LiveIntervals &LIS; member in __anon689c7d9e0111::InlineSpiller
198 : MF(MF), LIS(Pass.getAnalysis<LiveIntervals>()), in InlineSpiller()
271 static void getVDefInterval(const MachineInstr &MI, LiveIntervals &LIS) { in getVDefInterval() argument
274 LIS.getInterval(MO.getReg()); in getVDefInterval()
290 if (SnipLI.getNumValNums() > 2 || !LIS.intervalIsInOneMBB(SnipLI)) in isSnippet()
342 LiveInterval &SnipLI = LIS.getInterval(SnipReg); in collectRegsToSpill()
379 SlotIndex Idx = LIS.getInstructionIndex(CopyMI); in hoistSpillInsideBB()
386 LiveInterval &SrcLI = LIS.getInterval(SrcReg); in hoistSpillInsideBB()
389 MachineBasicBlock *DefMBB = LIS.getMBBFromIndex(SrcVNI->def); in hoistSpillInsideBB()
397 LiveInterval &OrigLI = LIS.getInterval(Original); in hoistSpillInsideBB()
407 MachineBasicBlock *MBB = LIS.getMBBFromIndex(SrcVNI->def); in hoistSpillInsideBB()
412 MachineInstr *DefMI = LIS.getInstructionFromIndex(SrcVNI->def); in hoistSpillInsideBB()
421 LIS.InsertMachineInstrRangeInMaps(MIS.begin(), MII); in hoistSpillInsideBB()
423 getVDefInterval(MI, LIS); in hoistSpillInsideBB()
464 SlotIndex Idx = LIS.getInstructionIndex(MI); in eliminateRedundantSpills()
471 LiveInterval &DstLI = LIS.getInterval(DstReg); in eliminateRedundantSpills()
510 MachineBasicBlock *MBB = LIS.getMBBFromIndex(VNI->def); in markValueUsed()
512 VNInfo *PVNI = LI->getVNInfoBefore(LIS.getMBBEndIdx(P)); in markValueUsed()
520 MachineInstr *MI = LIS.getInstructionFromIndex(VNI->def); in markValueUsed()
523 LiveInterval &SnipLI = LIS.getInterval(MI->getOperand(1).getReg()); in markValueUsed()
574 SlotIndex UseIdx = LIS.getInstructionIndex(MI).getRegSlot(true); in reMaterializeFor()
589 LiveInterval &OrigLI = LIS.getInterval(Original); in reMaterializeFor()
592 RM.OrigMI = LIS.getInstructionFromIndex(OrigVNI->def); in reMaterializeFor()
634 auto *NewMI = LIS.getInstructionFromIndex(DefIdx); in reMaterializeFor()
639 << *LIS.getInstructionFromIndex(DefIdx)); in reMaterializeFor()
666 LiveInterval &LI = LIS.getInterval(Reg); in reMaterializeAll()
683 LiveInterval &LI = LIS.getInterval(Reg); in reMaterializeAll()
687 MachineInstr *MI = LIS.getInstructionFromIndex(VNI->def); in reMaterializeAll()
716 assert(LIS.hasInterval(Reg) && in reMaterializeAll()
717 (!LIS.getInterval(Reg).empty() || !MRI.reg_nodbg_empty(Reg)) && in reMaterializeAll()
747 LIS.RemoveMachineInstrFromMaps(*MI); in coalesceStackAccess()
766 LiveIntervals const &LIS, in dumpMachineInstrRangeWithSlotIndex() argument
780 SlotIndex Idx = LIS.getInstructionIndex(*I).getRegSlot(); in dumpMachineInstrRangeWithSlotIndex()
883 LoadMI ? TII.foldMemoryOperand(*MI, FoldOps, *LoadMI, &LIS) in foldMemoryOperand()
884 : TII.foldMemoryOperand(*MI, FoldOps, StackSlot, &LIS, &VRM); in foldMemoryOperand()
908 SlotIndex Idx = LIS.getInstructionIndex(*MI).getRegSlot(); in foldMemoryOperand()
909 LIS.removePhysRegDefAt(Reg.asMCReg(), Idx); in foldMemoryOperand()
916 LIS.ReplaceMachineInstrInMaps(*MI, *FoldMI); in foldMemoryOperand()
959 LIS.InsertMachineInstrInMaps(MI); in foldMemoryOperand()
972 LLVM_DEBUG(dumpMachineInstrRangeWithSlotIndex(MIS.begin(), MIS.end(), LIS, in foldMemoryOperand()
998 LIS.InsertMachineInstrRangeInMaps(MIS.begin(), MI); in insertReload()
1000 LLVM_DEBUG(dumpMachineInstrRangeWithSlotIndex(MIS.begin(), MI, LIS, "reload", in insertReload()
1043 LIS.InsertMachineInstrRangeInMaps(Spill, MIS.end()); in insertSpill()
1045 getVDefInterval(MI, LIS); in insertSpill()
1048 dumpMachineInstrRangeWithSlotIndex(Spill, MIS.end(), LIS, "spill")); in insertSpill()
1060 LiveInterval &OldLI = LIS.getInterval(Reg); in spillAroundUses()
1091 SlotIndex Idx = LIS.getInstructionIndex(MI).getRegSlot(); in spillAroundUses()
1114 LiveInterval &SibLI = LIS.getInterval(SibReg); in spillAroundUses()
1168 StackInt->MergeSegmentsInAsValue(LIS.getInterval(Reg), in spillAll()
1188 LIS.RemoveMachineInstrFromMaps(MI); in spillAll()
1232 BumpPtrAllocator &Allocator = LIS.getVNInfoAllocator(); in addToMergeableSpills()
1233 LiveInterval &OrigLI = LIS.getInterval(Original); in addToMergeableSpills()
1241 SlotIndex Idx = LIS.getInstructionIndex(Spill); in addToMergeableSpills()
1254 SlotIndex Idx = LIS.getInstructionIndex(Spill); in rmFromMergeableSpills()
1278 LiveInterval &LI = LIS.getInterval(SibReg); in isSpillCandBB()
1302 SlotIndex PIdx = LIS.getInstructionIndex(*PrevSpill); in rmRedundantSpills()
1303 SlotIndex CIdx = LIS.getInstructionIndex(*CurrentSpill); in rmRedundantSpills()
1424 MachineBasicBlock *Root = LIS.getMBBFromIndex(OrigVNI.def); in runHoistSpills()
1543 LiveRangeEdit Edit(nullptr, NewVRegs, MF, LIS, &VRM, this); in hoistAllSpills()
1600 LIS.InsertMachineInstrRangeInMaps(MIS.begin(), MII); in hoistAllSpills()
1602 getVDefInterval(MI, LIS); in hoistAllSpills()