Lines Matching refs:li
119 bool OverlapWithAssignments(LiveInterval *li, int Color) const;
120 int ColorSlot(LiveInterval *li);
169 LiveInterval &li = LS->getInterval(FI); in ScanForSpillSlotRefs() local
171 li.incrementWeight( in ScanForSpillSlotRefs()
218 LiveInterval &li = I->second; in InitializeSlots() local
219 LLVM_DEBUG(li.dump()); in InitializeSlots()
220 int FI = Register::stackSlot2Index(li.reg()); in InitializeSlots()
224 SSIntervals.push_back(&li); in InitializeSlots()
253 StackSlotColoring::OverlapWithAssignments(LiveInterval *li, int Color) const { in OverlapWithAssignments() argument
257 if (OtherLI->overlaps(*li)) in OverlapWithAssignments()
264 int StackSlotColoring::ColorSlot(LiveInterval *li) { in ColorSlot() argument
267 int FI = Register::stackSlot2Index(li->reg()); in ColorSlot()
275 if (!OverlapWithAssignments(li, Color)) { in ColorSlot()
301 Assignments[Color].push_back(li); in ColorSlot()
327 for (LiveInterval *li : SSIntervals) { in ColorSlots()
328 int SS = Register::stackSlot2Index(li->reg()); in ColorSlots()
329 int NewSS = ColorSlot(li); in ColorSlots()
333 SlotWeights[NewSS] += li->weight(); in ColorSlots()
339 for (LiveInterval *li : SSIntervals) { in ColorSlots()
340 int SS = Register::stackSlot2Index(li->reg()); in ColorSlots()
341 li->setWeight(SlotWeights[SS]); in ColorSlots()
347 for (LiveInterval *li : SSIntervals) in ColorSlots()
348 LLVM_DEBUG(li->dump()); in ColorSlots()