Lines Matching defs: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);
325 LR.LastUse = 0; // Don't kill register again
493 void RAFast::assignVirtToPhysReg(LiveReg &LR, unsigned PhysReg) {
494 DEBUG(dbgs() << "Assigning " << PrintReg(LR.VirtReg, TRI) << " to "
496 PhysRegState[PhysReg] = LR.VirtReg;
497 assert(!LR.PhysReg && "Already assigned a physreg");
498 LR.PhysReg = PhysReg;