Lines Matching refs:LR
233 void RAFast::addKillFlag(const LiveReg &LR) {
234 if (!LR.LastUse) return;
235 MachineOperand &MO = LR.LastUse->getOperand(LR.LastOpNum);
236 if (MO.isUse() && !LR.LastUse->isRegTiedToDefOperand(LR.LastOpNum)) {
237 if (MO.getReg() == LR.PhysReg)
240 LR.LastUse->addRegisterKilled(LR.PhysReg, TRI, true);
277 LiveReg &LR = *LRI;
278 assert(PhysRegState[LR.PhysReg] == LRI->VirtReg && "Broken RegState mapping");
280 if (LR.Dirty) {
283 bool SpillKill = LR.LastUse != MI;
284 LR.Dirty = false;
286 << " in " << PrintReg(LR.PhysReg, TRI));
290 TII->storeRegToStackSlot(*MBB, MI, LR.PhysReg, SpillKill, FI, RC, TRI);
322 LR.LastUse = 0; // Don't kill register again
490 void RAFast::assignVirtToPhysReg(LiveReg &LR, unsigned PhysReg) {
491 DEBUG(dbgs() << "Assigning " << PrintReg(LR.VirtReg, TRI) << " to "
493 PhysRegState[PhysReg] = LR.VirtReg;
494 assert(!LR.PhysReg && "Already assigned a physreg");
495 LR.PhysReg = PhysReg;