Lines Matching refs:LI
147 LiveIntervals *LI; member in __anon86a083a20111::StrongPHIElimination
182 MIIndexCompare(LiveIntervals *LiveIntervals) : LI(LiveIntervals) { } in MIIndexCompare()
185 return LI->getInstructionIndex(LHS) < LI->getInstructionIndex(RHS); in operator ()()
188 LiveIntervals *LI; member
238 LI = &getAnalysis<LiveIntervals>(); in runOnMachineFunction()
328 LI->RemoveMachineInstrFromMaps(PHI); in runOnMachineFunction()
345 LiveInterval &DestLI = LI->getInterval(DestReg); in runOnMachineFunction()
346 LiveInterval &NewLI = LI->getInterval(NewReg); in runOnMachineFunction()
354 NewVNI = NewLI.createValueCopy(DestLR->valno, LI->getVNInfoAllocator()); in runOnMachineFunction()
362 LI->removeInterval(DestReg); in runOnMachineFunction()
376 LiveInterval &SrcLI = LI->getInterval(SrcReg); in runOnMachineFunction()
381 if (SrcLI.liveAt(LI->getMBBStartIdx(*SI))) { in runOnMachineFunction()
392 SlotIndex LastUseIndex = LI->getInstructionIndex(LastUse->getParent()); in runOnMachineFunction()
393 SrcLI.removeRange(LastUseIndex.getDefIndex(), LI->getMBBEndIdx(MBB)); in runOnMachineFunction()
397 LI->renumber(); in runOnMachineFunction()
529 std::sort(DefInstrs.begin(), DefInstrs.end(), MIIndexCompare(LI)); in SplitInterferencesForBasicBlock()
575 && LI->getInterval(NewParent).liveAt(LI->getInstructionIndex(*BBI))) { in SplitInterferencesForBasicBlock()
632 if (NewParent && LI->isLiveOutOfMBB(LI->getInterval(NewParent), &MBB) in SplitInterferencesForBasicBlock()
675 LiveInterval &SrcInterval = LI->getInterval(SrcReg); in InsertCopiesForPHI()
676 SlotIndex PredIndex = LI->getMBBEndIdx(PredBB); in InsertCopiesForPHI()
703 LI->InsertMachineInstrInMaps(CopyInstr); in InsertCopiesForPHI()
708 LI->addLiveRangeToEndOfBlock(CopyReg, CopyInstr); in InsertCopiesForPHI()
732 LiveInterval &SrcLI = LI->getInterval(SrcReg); in InsertCopiesForPHI()
733 SlotIndex MBBStartIndex = LI->getMBBStartIdx(MBB); in InsertCopiesForPHI()
734 SlotIndex PHIIndex = LI->getInstructionIndex(PHI); in InsertCopiesForPHI()
744 LiveInterval &DestLI = LI->getInterval(DestReg); in InsertCopiesForPHI()
747 SlotIndex PHIIndex = LI->getInstructionIndex(PHI); in InsertCopiesForPHI()
756 SlotIndex MBBStartIndex = LI->getMBBStartIdx(MBB); in InsertCopiesForPHI()
772 LI->InsertMachineInstrInMaps(CopyInstr); in InsertCopiesForPHI()
778 LiveInterval &CopyLI = LI->getOrCreateInterval(CopyReg); in InsertCopiesForPHI()
779 SlotIndex MBBStartIndex = LI->getMBBStartIdx(MBB); in InsertCopiesForPHI()
780 SlotIndex DestCopyIndex = LI->getInstructionIndex(CopyInstr); in InsertCopiesForPHI()
783 LI->getVNInfoAllocator()); in InsertCopiesForPHI()
791 LiveInterval &DestLI = LI->getOrCreateInterval(DestReg); in InsertCopiesForPHI()
792 SlotIndex PHIIndex = LI->getInstructionIndex(PHI); in InsertCopiesForPHI()
806 LiveInterval &OldLI = LI->getInterval(Reg); in MergeLIsAndRename()
807 LiveInterval &NewLI = LI->getInterval(NewReg); in MergeLIsAndRename()
818 NewVN = NewLI.createValueCopy(OldVN, LI->getVNInfoAllocator()); in MergeLIsAndRename()
828 LI->removeInterval(Reg); in MergeLIsAndRename()