Lines Matching refs:Seg
1179 void LiveRangeUpdater::add(LiveRange::Segment Seg) { in add() argument
1185 LR->addSegmentToSet(Seg); in add()
1190 if (!LastStart.isValid() || LastStart > Seg.start) { in add()
1199 LastStart = Seg.start; in add()
1203 if (ReadI != E && ReadI->end <= Seg.start) { in add()
1209 ReadI = WriteI = LR->find(Seg.start); in add()
1211 while (ReadI != E && ReadI->end <= Seg.start) in add()
1215 assert(ReadI == E || ReadI->end > Seg.start); in add()
1218 if (ReadI != E && ReadI->start <= Seg.start) { in add()
1219 assert(ReadI->valno == Seg.valno && "Cannot overlap different values"); in add()
1221 if (ReadI->end >= Seg.end) in add()
1224 Seg.start = ReadI->start; in add()
1229 while (ReadI != E && coalescable(Seg, *ReadI)) { in add()
1230 Seg.end = std::max(Seg.end, ReadI->end); in add()
1235 if (!Spills.empty() && coalescable(Spills.back(), Seg)) { in add()
1236 Seg.start = Spills.back().start; in add()
1237 Seg.end = std::max(Spills.back().end, Seg.end); in add()
1242 if (WriteI != LR->begin() && coalescable(WriteI[-1], Seg)) { in add()
1243 WriteI[-1].end = std::max(WriteI[-1].end, Seg.end); in add()
1249 *WriteI++ = Seg; in add()
1255 LR->segments.push_back(Seg); in add()
1258 Spills.push_back(Seg); in add()