Lines Matching refs:LIS

33   LiveIntervals *LIS;  member in __anon0ceec81f0111::SIOptimizeExecMaskingPreRA
91 LiveIntervals *LIS, Register Reg, in isDefBetween() argument
93 SlotIndex AndIdx = LIS->getInstructionIndex(And).getRegSlot(); in isDefBetween()
94 SlotIndex SelIdx = LIS->getInstructionIndex(Sel).getRegSlot(); in isDefBetween()
97 return isDefBetween(LIS->getInterval(Reg), AndIdx, SelIdx); in isDefBetween()
100 if (isDefBetween(LIS->getRegUnit(Unit), AndIdx, SelIdx)) in isDefBetween()
132 TRI->findReachingDef(CondReg, AMDGPU::NoSubRegister, *I, *MRI, LIS); in optimizeVcndVcmpPair()
148 auto *Cmp = TRI->findReachingDef(CmpReg, CmpSubReg, *And, *MRI, LIS); in optimizeVcndVcmpPair()
165 auto *Sel = TRI->findReachingDef(SelReg, Op1->getSubReg(), *Cmp, *MRI, LIS); in optimizeVcndVcmpPair()
184 if (isDefBetween(*TRI, LIS, CCReg, *Sel, *And)) in optimizeVcndVcmpPair()
189 SlotIndex SelIdx = LIS->getInstructionIndex(*Sel); in optimizeVcndVcmpPair()
190 LiveInterval *SelLI = &LIS->getInterval(SelReg); in optimizeVcndVcmpPair()
212 SlotIndex AndIdx = LIS->ReplaceMachineInstrInMaps(*And, *Andn2); in optimizeVcndVcmpPair()
219 SlotIndex CmpIdx = LIS->getInstructionIndex(*Cmp); in optimizeVcndVcmpPair()
221 LiveInterval &CCLI = LIS->getInterval(CCReg); in optimizeVcndVcmpPair()
224 LIS->removeInterval(CCReg); in optimizeVcndVcmpPair()
225 LIS->createAndComputeVirtRegInterval(CCReg); in optimizeVcndVcmpPair()
228 LIS->removeAllRegUnitsForPhysReg(CCReg); in optimizeVcndVcmpPair()
232 LiveInterval *CmpLI = CmpReg.isVirtual() ? &LIS->getInterval(CmpReg) : nullptr; in optimizeVcndVcmpPair()
241 LIS->removeVRegDefAt(*CmpLI, CmpIdx.getRegSlot()); in optimizeVcndVcmpPair()
242 LIS->RemoveMachineInstrFromMaps(*Cmp); in optimizeVcndVcmpPair()
248 LIS->shrinkToUses(SelLI); in optimizeVcndVcmpPair()
253 LIS->removeVRegDefAt(*SelLI, SelIdx.getRegSlot()); in optimizeVcndVcmpPair()
254 LIS->RemoveMachineInstrFromMaps(*Sel); in optimizeVcndVcmpPair()
260 LIS->shrinkToUses(SelLI); in optimizeVcndVcmpPair()
321 SlotIndex StartIdx = LIS->getInstructionIndex(SaveExecMI); in optimizeElseBranch()
322 SlotIndex EndIdx = LIS->getInstructionIndex(*AndExecMI); in optimizeElseBranch()
324 LiveRange &RegUnit = LIS->getRegUnit(Unit); in optimizeElseBranch()
330 LIS->removeInterval(SavedExecReg); in optimizeElseBranch()
331 LIS->removeInterval(DstReg); in optimizeElseBranch()
335 LIS->RemoveMachineInstrFromMaps(*AndExecMI); in optimizeElseBranch()
338 LIS->createAndComputeVirtRegInterval(DstReg); in optimizeElseBranch()
351 LIS = &getAnalysis<LiveIntervals>(); in runOnMachineFunction()
423 LIS->RemoveMachineInstrFromMaps(*I); in runOnMachineFunction()
465 LIS->RemoveMachineInstrFromMaps(*I); in runOnMachineFunction()
468 LIS->removeInterval(SavedExec); in runOnMachineFunction()
479 LIS->removeInterval(Reg); in runOnMachineFunction()
481 LIS->createAndComputeVirtRegInterval(Reg); in runOnMachineFunction()
483 LIS->removeAllRegUnitsForPhysReg(Reg); in runOnMachineFunction()