Lines Matching refs:LIS
87 LiveIntervals *LIS; member in __anon6d7224580111::RegisterCoalescer
419 if (!LIS->hasInterval(CP.getDstReg())) in AdjustCopiesBackFrom()
423 LIS->getInterval(CP.isFlipped() ? CP.getDstReg() : CP.getSrcReg()); in AdjustCopiesBackFrom()
425 LIS->getInterval(CP.isFlipped() ? CP.getSrcReg() : CP.getDstReg()); in AdjustCopiesBackFrom()
426 SlotIndex CopyIdx = LIS->getInstructionIndex(CopyMI).getDefIndex(); in AdjustCopiesBackFrom()
482 LIS->getInstructionFromIndex(ValLR->end.getPrevSlot()); in AdjustCopiesBackFrom()
496 if (LIS->hasInterval(*AS) && IntA.overlaps(LIS->getInterval(*AS))) { in AdjustCopiesBackFrom()
499 LIS->getInterval(*AS).print(dbgs(), TRI); in AdjustCopiesBackFrom()
526 if (!LIS->hasInterval(*SR)) in AdjustCopiesBackFrom()
528 LiveInterval &SRLI = LIS->getInterval(*SR); in AdjustCopiesBackFrom()
531 LIS->getVNInfoAllocator()))); in AdjustCopiesBackFrom()
561 LIS->shrinkToUses(&IntA); in AdjustCopiesBackFrom()
625 if (!LIS->hasInterval(CP.getDstReg())) in RemoveCopyByCommutingDef()
628 SlotIndex CopyIdx = LIS->getInstructionIndex(CopyMI).getDefIndex(); in RemoveCopyByCommutingDef()
631 LIS->getInterval(CP.isFlipped() ? CP.getDstReg() : CP.getSrcReg()); in RemoveCopyByCommutingDef()
633 LIS->getInterval(CP.isFlipped() ? CP.getSrcReg() : CP.getDstReg()); in RemoveCopyByCommutingDef()
651 MachineInstr *DefMI = LIS->getInstructionFromIndex(AValNo->def); in RemoveCopyByCommutingDef()
688 if (LIS->hasInterval(*AS) && in RemoveCopyByCommutingDef()
689 HasOtherReachingDefs(IntA, LIS->getInterval(*AS), AValNo, 0)) in RemoveCopyByCommutingDef()
698 SlotIndex UseIdx = LIS->getInstructionIndex(UseMI); in RemoveCopyByCommutingDef()
720 LIS->ReplaceMachineInstrInMaps(DefMI, NewMI); in RemoveCopyByCommutingDef()
750 SlotIndex UseIdx = LIS->getInstructionIndex(UseMI).getUseIndex(); in RemoveCopyByCommutingDef()
802 SlotIndex CopyIdx = LIS->getInstructionIndex(CopyMI).getUseIndex(); in ReMaterializeTrivialDef()
808 MachineInstr *DefMI = LIS->getInstructionFromIndex(ValNo->def); in ReMaterializeTrivialDef()
854 LIS->ReplaceMachineInstrInMaps(CopyMI, NewMI); in ReMaterializeTrivialDef()
863 LIS->shrinkToUses(&SrcInt); in ReMaterializeTrivialDef()
877 SlotIndex Idx = LIS->getInstructionIndex(CopyMI); in eliminateUndefCopy()
878 LiveInterval *SrcInt = &LIS->getInterval(CP.getSrcReg()); in eliminateUndefCopy()
881 LiveInterval *DstInt = &LIS->getInterval(CP.getDstReg()); in eliminateUndefCopy()
902 SlotIndex Idx = LIS->getInstructionIndex(MI); in eliminateUndefCopy()
936 ReMaterializeTrivialDef(LIS->getInterval(SrcReg), false, in UpdateRegDefsUses()
986 dbgs() << LIS->getInstructionIndex(UseMI) << "\t"; in UpdateRegDefsUses()
995 static bool removeIntervalIfEmpty(LiveInterval &li, LiveIntervals *LIS, in removeIntervalIfEmpty() argument
1000 if (!LIS->hasInterval(*SR)) in removeIntervalIfEmpty()
1002 LiveInterval &sli = LIS->getInterval(*SR); in removeIntervalIfEmpty()
1004 LIS->removeInterval(*SR); in removeIntervalIfEmpty()
1006 LIS->removeInterval(li.reg); in removeIntervalIfEmpty()
1016 SlotIndex DefIdx = LIS->getInstructionIndex(DefMI).getDefIndex(); in RemoveDeadDef()
1021 return removeIntervalIfEmpty(li, LIS, TRI); in RemoveDeadDef()
1026 SlotIndex DefIdx = LIS->getInstructionIndex(CopyMI).getDefIndex(); in RemoveCopyFlag()
1027 if (LIS->hasInterval(DstReg)) { in RemoveCopyFlag()
1028 LiveInterval &LI = LIS->getInterval(DstReg); in RemoveCopyFlag()
1036 if (!LIS->hasInterval(*AS)) in RemoveCopyFlag()
1038 LiveInterval &LI = LIS->getInterval(*AS); in RemoveCopyFlag()
1051 bool Allocatable = LIS->isAllocatable(CP.getDstReg()); in shouldJoinPhys()
1052 LiveInterval &JoinVInt = LIS->getInterval(CP.getSrcReg()); in shouldJoinPhys()
1075 if (LIS->hasInterval(CP.getDstReg()) && in shouldJoinPhys()
1076 LIS->getInterval(CP.getDstReg()).ranges.size() > 1000) { in shouldJoinPhys()
1088 unsigned Length = LIS->getApproximateInstructionCount(JoinVInt); in shouldJoinPhys()
1114 (LIS->getFuncInstructionCount() / NewRCCount) < 8) in isWinToJoinCrossClass()
1116 LiveInterval &SrcInt = LIS->getInterval(SrcReg); in isWinToJoinCrossClass()
1117 LiveInterval &DstInt = LIS->getInterval(DstReg); in isWinToJoinCrossClass()
1118 unsigned SrcSize = LIS->getApproximateInstructionCount(SrcInt); in isWinToJoinCrossClass()
1119 unsigned DstSize = LIS->getApproximateInstructionCount(DstInt); in isWinToJoinCrossClass()
1160 DEBUG(dbgs() << LIS->getInstructionIndex(CopyMI) << '\t' << *CopyMI); in JoinCopy()
1192 ReMaterializeTrivialDef(LIS->getInterval(CP.getSrcReg()), true, in JoinCopy()
1216 if (!CP.getSubIdx() && LIS->getInterval(CP.getSrcReg()).ranges.size() > in JoinCopy()
1217 LIS->getInterval(CP.getDstReg()).ranges.size()) in JoinCopy()
1231 ReMaterializeTrivialDef(LIS->getInterval(CP.getSrcReg()), true, in JoinCopy()
1269 LiveInterval &SrcInt = LIS->getInterval(CP.getSrcReg()); in JoinCopy()
1272 LIS->findLiveInMBBs(I->start, I->end, BlockSeq); in JoinCopy()
1284 LIS->removeInterval(CP.getSrcReg()); in JoinCopy()
1290 LiveInterval &DstInt = LIS->getInterval(CP.getDstReg()); in JoinCopy()
1426 LiveInterval &RHS = LIS->getInterval(CP.getSrcReg()); in JoinIntervals()
1435 if (!LIS->hasInterval(*AS)) in JoinIntervals()
1437 const LiveInterval &LHS = LIS->getInterval(*AS); in JoinIntervals()
1445 !CP.isCoalescable(LIS->getInstructionFromIndex(RI->start)))) { in JoinIntervals()
1457 !CP.isCoalescable(LIS->getInstructionFromIndex(LI->start))) { in JoinIntervals()
1480 LiveInterval &LHS = LIS->getOrCreateInterval(CP.getDstReg()); in JoinIntervals()
1504 !RegistersDefinedFromSameValue(*LIS, *TRI, CP, VNI, lr, DupCopies)) in JoinIntervals()
1531 !RegistersDefinedFromSameValue(*LIS, *TRI, CP, VNI, lr, DupCopies)) in JoinIntervals()
1662 LIS->shrinkToUses(&LIS->getInterval(*I)); in JoinIntervals()
1719 if (LIS->hasInterval(SrcReg) && LIS->getInterval(SrcReg).empty()) in CopyCoalesceInMBB()
1816 LIS = &getAnalysis<LiveIntervals>(); in runOnMachineFunction()
1835 for (LiveIntervals::iterator I = LIS->begin(), E = LIS->end(); in runOnMachineFunction()
1878 LIS->hasInterval(SrcReg)) in runOnMachineFunction()
1879 LIS->shrinkToUses(&LIS->getInterval(SrcReg)); in runOnMachineFunction()
1891 LIS->RemoveMachineInstrFromMaps(MI); in runOnMachineFunction()
1926 RemoveDeadDef(LIS->getInterval(DeadDef), MI); in runOnMachineFunction()
1928 LIS->RemoveMachineInstrFromMaps(mii); in runOnMachineFunction()
1938 if (LIS->isNotInMIMap(MI)) continue; in runOnMachineFunction()
1939 SlotIndex DefIdx = LIS->getInstructionIndex(MI).getDefIndex(); in runOnMachineFunction()
1944 if (!reg || !LIS->hasInterval(reg)) continue; in runOnMachineFunction()
1945 if (!LIS->getInterval(reg).killedAt(DefIdx)) { in runOnMachineFunction()
1955 if (LIS->hasInterval(S) && LIS->getInterval(S).liveAt(DefIdx)) in runOnMachineFunction()
1988 LIS->print(O, m); in print()