Lines Matching refs:Seg
1003 void LiveRangeUpdater::add(LiveRange::Segment Seg) { in add() argument
1009 LR->addSegmentToSet(Seg); in add()
1014 if (!LastStart.isValid() || LastStart > Seg.start) { in add()
1023 LastStart = Seg.start; in add()
1027 if (ReadI != E && ReadI->end <= Seg.start) { in add()
1033 ReadI = WriteI = LR->find(Seg.start); in add()
1035 while (ReadI != E && ReadI->end <= Seg.start) in add()
1039 assert(ReadI == E || ReadI->end > Seg.start); in add()
1042 if (ReadI != E && ReadI->start <= Seg.start) { in add()
1043 assert(ReadI->valno == Seg.valno && "Cannot overlap different values"); in add()
1045 if (ReadI->end >= Seg.end) in add()
1048 Seg.start = ReadI->start; in add()
1053 while (ReadI != E && coalescable(Seg, *ReadI)) { in add()
1054 Seg.end = std::max(Seg.end, ReadI->end); in add()
1059 if (!Spills.empty() && coalescable(Spills.back(), Seg)) { in add()
1060 Seg.start = Spills.back().start; in add()
1061 Seg.end = std::max(Spills.back().end, Seg.end); in add()
1066 if (WriteI != LR->begin() && coalescable(WriteI[-1], Seg)) { in add()
1067 WriteI[-1].end = std::max(WriteI[-1].end, Seg.end); in add()
1073 *WriteI++ = Seg; in add()
1079 LR->segments.push_back(Seg); in add()
1082 Spills.push_back(Seg); in add()