Lines Matching refs:LI
687 if (LI) in print()
688 OS << "Clean " << PrintReg(LI->reg) << " updater: " << *LI << '\n'; in print()
693 assert(LI && "Can't have null LI in dirty updater."); in print()
694 OS << PrintReg(LI->reg) << " updater with gap = " << (ReadI - WriteI) in print()
697 for (LiveInterval::const_iterator I = LI->begin(); I != WriteI; ++I) in print()
703 for (LiveInterval::const_iterator I = ReadI, E = LI->end(); I != E; ++I) in print()
725 assert(LI && "Cannot add to a null destination"); in add()
733 WriteI = ReadI = LI->begin(); in add()
740 LiveInterval::iterator E = LI->end(); in add()
747 ReadI = WriteI = LI->find(Seg.start); in add()
780 if (WriteI != LI->begin() && coalescable(WriteI[-1], Seg)) { in add()
793 LI->ranges.push_back(Seg); in add()
794 WriteI = ReadI = LI->ranges.end(); in add()
808 LiveInterval::iterator B = LI->begin(); in mergeSpills()
830 assert(LI && "Cannot add to a null destination"); in flush()
834 LI->ranges.erase(WriteI, ReadI); in flush()
835 LI->verify(); in flush()
843 size_t WritePos = WriteI - LI->begin(); in flush()
844 LI->ranges.insert(ReadI, Spills.size() - GapSize, LiveRange()); in flush()
846 WriteI = LI->ranges.begin() + WritePos; in flush()
849 LI->ranges.erase(WriteI + Spills.size(), ReadI); in flush()
853 LI->verify(); in flush()
856 unsigned ConnectedVNInfoEqClasses::Classify(const LiveInterval *LI) { in Classify() argument
859 EqClass.grow(LI->getNumValNums()); in Classify()
864 for (LiveInterval::const_vni_iterator I = LI->vni_begin(), E = LI->vni_end(); in Classify()
881 if (const VNInfo *PVNI = LI->getVNInfoBefore(LIS.getMBBEndIdx(*PI))) in Classify()
888 if (const VNInfo *UVNI = LI->getVNInfoBefore(VNI->def)) in Classify()
904 LiveInterval &LI = *LIV[0]; in Distribute() local
907 for (MachineRegisterInfo::reg_iterator RI = MRI.reg_begin(LI.reg), in Distribute()
921 LiveRangeQuery LRQ(LI, Idx); in Distribute()
931 LiveInterval::iterator J = LI.begin(), E = LI.end(); in Distribute()
942 LI.ranges.erase(J, E); in Distribute()
945 unsigned j = 0, e = LI.getNumValNums(); in Distribute()
949 VNInfo *VNI = LI.getValNumInfo(i); in Distribute()
955 LI.valnos[j++] = VNI; in Distribute()
958 LI.valnos.resize(j); in Distribute()