Lines Matching refs:LIS
82 LiveIntervals &LIS; member in __anon2f89086e0111::HoistSpillHelper
134 : MF(mf), LIS(pass.getAnalysis<LiveIntervalsWrapperPass>().getLIS()), in HoistSpillHelper()
141 IPA(LIS, mf.getNumBlockIDs()) {} in HoistSpillHelper()
152 LiveIntervals &LIS; member in __anon2f89086e0111::InlineSpiller
192 : MF(MF), LIS(Pass.getAnalysis<LiveIntervalsWrapperPass>().getLIS()), in InlineSpiller()
310 static void getVDefInterval(const MachineInstr &MI, LiveIntervals &LIS) { in getVDefInterval() argument
313 LIS.getInterval(MO.getReg()); in getVDefInterval()
333 if (!LIS.intervalIsInOneMBB(SnipLI)) in isSnippet()
340 MachineInstr *MI = LIS.getInstructionFromIndex(VNI->def); in isSnippet()
398 LiveInterval &SnipLI = LIS.getInterval(SnipReg); in collectRegsToSpill()
435 SlotIndex Idx = LIS.getInstructionIndex(CopyMI); in hoistSpillInsideBB()
442 LiveInterval &SrcLI = LIS.getInterval(SrcReg); in hoistSpillInsideBB()
445 MachineBasicBlock *DefMBB = LIS.getMBBFromIndex(SrcVNI->def); in hoistSpillInsideBB()
453 LiveInterval &OrigLI = LIS.getInterval(Original); in hoistSpillInsideBB()
463 MachineBasicBlock *MBB = LIS.getMBBFromIndex(SrcVNI->def); in hoistSpillInsideBB()
468 MachineInstr *DefMI = LIS.getInstructionFromIndex(SrcVNI->def); in hoistSpillInsideBB()
477 LIS.InsertMachineInstrRangeInMaps(MIS.begin(), MII); in hoistSpillInsideBB()
479 getVDefInterval(MI, LIS); in hoistSpillInsideBB()
520 SlotIndex Idx = LIS.getInstructionIndex(MI); in eliminateRedundantSpills()
527 LiveInterval &DstLI = LIS.getInterval(DstReg); in eliminateRedundantSpills()
567 MachineBasicBlock *MBB = LIS.getMBBFromIndex(VNI->def); in markValueUsed()
569 VNInfo *PVNI = LI->getVNInfoBefore(LIS.getMBBEndIdx(P)); in markValueUsed()
577 MachineInstr *MI = LIS.getInstructionFromIndex(VNI->def); in markValueUsed()
580 LiveInterval &SnipLI = LIS.getInterval(MI->getOperand(1).getReg()); in markValueUsed()
631 SlotIndex UseIdx = LIS.getInstructionIndex(MI).getRegSlot(true); in reMaterializeFor()
646 LiveInterval &OrigLI = LIS.getInterval(Original); in reMaterializeFor()
649 RM.OrigMI = LIS.getInstructionFromIndex(OrigVNI->def); in reMaterializeFor()
691 auto *NewMI = LIS.getInstructionFromIndex(DefIdx); in reMaterializeFor()
696 << *LIS.getInstructionFromIndex(DefIdx)); in reMaterializeFor()
723 LiveInterval &LI = LIS.getInterval(Reg); in reMaterializeAll()
740 LiveInterval &LI = LIS.getInterval(Reg); in reMaterializeAll()
744 MachineInstr *MI = LIS.getInstructionFromIndex(VNI->def); in reMaterializeAll()
802 assert(LIS.hasInterval(Reg) && in reMaterializeAll()
803 (!LIS.getInterval(Reg).empty() || !MRI.reg_nodbg_empty(Reg)) && in reMaterializeAll()
833 LIS.RemoveMachineInstrFromMaps(*MI); in coalesceStackAccess()
852 LiveIntervals const &LIS, in dumpMachineInstrRangeWithSlotIndex() argument
866 SlotIndex Idx = LIS.getInstructionIndex(*I).getRegSlot(); in dumpMachineInstrRangeWithSlotIndex()
969 LoadMI ? TII.foldMemoryOperand(*MI, FoldOps, *LoadMI, &LIS) in foldMemoryOperand()
970 : TII.foldMemoryOperand(*MI, FoldOps, StackSlot, &LIS, &VRM); in foldMemoryOperand()
994 SlotIndex Idx = LIS.getInstructionIndex(*MI).getRegSlot(); in foldMemoryOperand()
995 LIS.removePhysRegDefAt(Reg.asMCReg(), Idx); in foldMemoryOperand()
1002 LIS.ReplaceMachineInstrInMaps(*MI, *FoldMI); in foldMemoryOperand()
1045 LIS.InsertMachineInstrInMaps(MI); in foldMemoryOperand()
1058 LLVM_DEBUG(dumpMachineInstrRangeWithSlotIndex(MIS.begin(), MIS.end(), LIS, in foldMemoryOperand()
1084 LIS.InsertMachineInstrRangeInMaps(MIS.begin(), MI); in insertReload()
1086 LLVM_DEBUG(dumpMachineInstrRangeWithSlotIndex(MIS.begin(), MI, LIS, "reload", in insertReload()
1128 LIS.InsertMachineInstrRangeInMaps(Spill, MIS.end()); in insertSpill()
1130 getVDefInterval(MI, LIS); in insertSpill()
1133 dumpMachineInstrRangeWithSlotIndex(Spill, MIS.end(), LIS, "spill")); in insertSpill()
1145 LiveInterval &OldLI = LIS.getInterval(Reg); in spillAroundUses()
1176 SlotIndex Idx = LIS.getInstructionIndex(MI).getRegSlot(); in spillAroundUses()
1199 LiveInterval &SibLI = LIS.getInterval(SibReg); in spillAroundUses()
1253 StackInt->MergeSegmentsInAsValue(LIS.getInterval(Reg), in spillAll()
1273 LIS.getSlotIndexes()->removeSingleMachineInstrFromMaps(MI); in spillAll()
1317 BumpPtrAllocator &Allocator = LIS.getVNInfoAllocator(); in addToMergeableSpills()
1318 LiveInterval &OrigLI = LIS.getInterval(Original); in addToMergeableSpills()
1326 SlotIndex Idx = LIS.getInstructionIndex(Spill); in addToMergeableSpills()
1339 SlotIndex Idx = LIS.getInstructionIndex(Spill); in rmFromMergeableSpills()
1363 LiveInterval &LI = LIS.getInterval(SibReg); in isSpillCandBB()
1387 SlotIndex PIdx = LIS.getInstructionIndex(*PrevSpill); in rmRedundantSpills()
1388 SlotIndex CIdx = LIS.getInstructionIndex(*CurrentSpill); in rmRedundantSpills()
1509 MachineBasicBlock *Root = LIS.getMBBFromIndex(OrigVNI.def); in runHoistSpills()
1627 LiveRangeEdit Edit(nullptr, NewVRegs, MF, LIS, &VRM, this); in hoistAllSpills()
1684 LIS.InsertMachineInstrRangeInMaps(MIS.begin(), MII); in hoistAllSpills()
1686 getVDefInterval(MI, LIS); in hoistAllSpills()