Lines Matching refs:LI
39 LiveInterval &LI = LIS.getOrCreateInterval(VReg); in createFrom() local
40 NewRegs.push_back(&LI); in createFrom()
41 return LI; in createFrom()
159 bool LiveRangeEdit::foldAsLoad(LiveInterval *LI, in foldAsLoad() argument
164 for (MachineRegisterInfo::reg_nodbg_iterator I = MRI.reg_nodbg_begin(LI->reg), in foldAsLoad()
203 if (UseMI->readsWritesVirtualRegister(LI->reg, &Ops).second) in foldAsLoad()
212 DefMI->addRegisterDead(LI->reg, 0); in foldAsLoad()
259 if (LiveInterval *LI = LIS.getCachedRegUnit(*Units)) { in eliminateDeadDef() local
260 if (VNInfo *VNI = LI->getVNInfoAt(Idx)) in eliminateDeadDef()
261 LI->removeValNo(VNI); in eliminateDeadDef()
267 LiveInterval &LI = LIS.getInterval(Reg); in eliminateDeadDef() local
275 LI.killedAt(Idx))) in eliminateDeadDef()
276 ToShrink.insert(&LI); in eliminateDeadDef()
280 if (VNInfo *VNI = LI.getVNInfoAt(Idx)) { in eliminateDeadDef()
282 TheDelegate->LRE_WillShrinkVirtReg(LI.reg); in eliminateDeadDef()
283 LI.removeValNo(VNI); in eliminateDeadDef()
284 if (LI.empty()) in eliminateDeadDef()
339 LiveInterval *LI = ToShrink.back(); in eliminateDeadDefs() local
341 if (foldAsLoad(LI, Dead)) in eliminateDeadDefs()
344 TheDelegate->LRE_WillShrinkVirtReg(LI->reg); in eliminateDeadDefs()
345 if (!LIS.shrinkToUses(LI, &Dead)) in eliminateDeadDefs()
354 if (LI->reg == RegsBeingSpilled[i]) { in eliminateDeadDefs()
363 LI->RenumberValues(LIS); in eliminateDeadDefs()
365 unsigned NumComp = ConEQ.Classify(LI); in eliminateDeadDefs()
369 bool IsOriginal = VRM && VRM->getOriginal(LI->reg) == LI->reg; in eliminateDeadDefs()
370 DEBUG(dbgs() << NumComp << " components: " << *LI << '\n'); in eliminateDeadDefs()
371 SmallVector<LiveInterval*, 8> Dups(1, LI); in eliminateDeadDefs()
373 Dups.push_back(&createFrom(LI->reg)); in eliminateDeadDefs()
380 TheDelegate->LRE_DidCloneVirtReg(Dups.back()->reg, LI->reg); in eliminateDeadDefs()
396 LiveInterval &LI = **I; in calculateRegClassAndHint() local
397 if (MRI.recomputeRegClass(LI.reg, MF.getTarget())) in calculateRegClassAndHint()
398 DEBUG(dbgs() << "Inflated " << PrintReg(LI.reg) << " to " in calculateRegClassAndHint()
399 << MRI.getRegClass(LI.reg)->getName() << '\n'); in calculateRegClassAndHint()
400 VRAI.CalculateWeightAndHint(LI); in calculateRegClassAndHint()