Home
last modified time | relevance | path

Searched refs:LastUse (Results 1 – 6 of 6) sorted by relevance

/external/llvm/lib/CodeGen/
DRegAllocFast.cpp71 MachineInstr *LastUse; // Last instr to use reg. member
78 : LastUse(0), VirtReg(v), PhysReg(0), LastOpNum(0), Dirty(false) {} in LiveReg()
234 if (!LR.LastUse) return; in addKillFlag()
235 MachineOperand &MO = LR.LastUse->getOperand(LR.LastOpNum); in addKillFlag()
236 if (MO.isUse() && !LR.LastUse->isRegTiedToDefOperand(LR.LastOpNum)) { in addKillFlag()
240 LR.LastUse->addRegisterKilled(LR.PhysReg, TRI, true); in addKillFlag()
283 bool SpillKill = LR.LastUse != MI; in spillVirtReg()
322 LR.LastUse = 0; // Don't kill register again in spillVirtReg()
596 } else if (LRI->LastUse) { in defineVirtReg()
599 if (LRI->LastUse != MI || LRI->LastUse->getOperand(LRI->LastOpNum).isUse()) in defineVirtReg()
[all …]
DLiveVariables.cpp283 MachineInstr *LastUse = PhysRegUse[Reg]; in FindLastRefOrPartRef() local
284 if (!LastDef && !LastUse) in FindLastRefOrPartRef()
287 MachineInstr *LastRefOrPartRef = LastUse ? LastUse : LastDef; in FindLastRefOrPartRef()
313 MachineInstr *LastUse = PhysRegUse[Reg]; in HandlePhysRegKill() local
314 if (!LastDef && !LastUse) in HandlePhysRegKill()
317 MachineInstr *LastRefOrPartRef = LastUse ? LastUse : LastDef; in HandlePhysRegKill()
DStrongPHIElimination.cpp389 MachineOperand *LastUse = findLastUse(MBB, SrcReg); in runOnMachineFunction() local
390 assert(LastUse); in runOnMachineFunction()
391 SlotIndex LastUseIndex = LI->getInstructionIndex(LastUse->getParent()); in runOnMachineFunction()
393 LastUse->setIsKill(true); in runOnMachineFunction()
DTwoAddressInstructionPass.cpp317 unsigned LastUse = Dist; in noUseAfterLastDef() local
327 if (MO.isUse() && DI->second < LastUse) in noUseAfterLastDef()
328 LastUse = DI->second; in noUseAfterLastDef()
333 return !(LastUse > LastDef && LastUse < Dist); in noUseAfterLastDef()
DLiveIntervalAnalysis.cpp976 SlotIndex LastUse = NewIdx; in findLastUseBefore() local
983 if (InstSlot > LastUse && InstSlot < OldIdx) in findLastUseBefore()
984 LastUse = InstSlot; in findLastUseBefore()
986 return LastUse; in findLastUseBefore()
DSplitKit.cpp958 SlotIndex LastUse = End.getPrevSlot(); in extendPHIKillRanges() local
961 if (Edit->getParent().liveAt(LastUse)) { in extendPHIKillRanges()
962 assert(RegAssign.lookup(LastUse) == RegIdx && in extendPHIKillRanges()