Searched refs:LastUse (Results 1 – 6 of 6) sorted by relevance
/external/llvm/lib/CodeGen/ |
D | RegAllocFast.cpp | 71 MachineInstr *LastUse; // Last instr to use reg. member 78 : LastUse(0), VirtReg(v), PhysReg(0), LastOpNum(0), Dirty(false) {} in LiveReg() 218 if (!LR.LastUse) return; in addKillFlag() 219 MachineOperand &MO = LR.LastUse->getOperand(LR.LastOpNum); in addKillFlag() 220 if (MO.isUse() && !LR.LastUse->isRegTiedToDefOperand(LR.LastOpNum)) { in addKillFlag() 224 LR.LastUse->addRegisterKilled(LR.PhysReg, TRI, true); in addKillFlag() 267 bool SpillKill = LR.LastUse != MI; in spillVirtReg() 309 LR.LastUse = 0; // Don't kill register again in spillVirtReg() 589 } else if (LRI->LastUse) { in defineVirtReg() 592 if (LRI->LastUse != MI || LRI->LastUse->getOperand(LRI->LastOpNum).isUse()) in defineVirtReg() [all …]
|
D | LiveVariables.cpp | 283 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()
|
D | LiveIntervalAnalysis.cpp | 1198 SlotIndex LastUse = NewIdx; in findLastUseBefore() local 1205 if (InstSlot > LastUse && InstSlot < OldIdx) in findLastUseBefore() 1206 LastUse = InstSlot; in findLastUseBefore() 1208 return LastUse; in findLastUseBefore() 1217 SlotIndex LastUse = findLastUseBefore(LI->reg, OldIdx); in moveEnteringUpFrom() local 1218 if (LastUse != NewIdx) in moveEnteringUpFrom() 1219 moveKillFlags(LI->reg, NewIdx, LastUse); in moveEnteringUpFrom() 1220 LR->end = LastUse.getRegSlot(LR->end.isEarlyClobber()); in moveEnteringUpFrom() 1302 SlotIndex LastUse = findLastUseBefore(LI->reg, OldIdx); in moveEnteringUpFromInto() local 1303 moveKillFlags(LI->reg, OldIdx, LastUse); in moveEnteringUpFromInto() [all …]
|
D | StrongPHIElimination.cpp | 389 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()
|
D | TwoAddressInstructionPass.cpp | 310 unsigned LastUse = Dist; in NoUseAfterLastDef() local 320 if (MO.isUse() && DI->second < LastUse) in NoUseAfterLastDef() 321 LastUse = DI->second; in NoUseAfterLastDef() 326 return !(LastUse > LastDef && LastUse < Dist); in NoUseAfterLastDef()
|
D | SplitKit.cpp | 956 SlotIndex LastUse = End.getPrevSlot(); in extendPHIKillRanges() local 959 if (Edit->getParent().liveAt(LastUse)) { in extendPHIKillRanges() 960 assert(RegAssign.lookup(LastUse) == RegIdx && in extendPHIKillRanges()
|