Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/
H A DHexagonBlockRanges.cpp293 std::map<RegisterRef,IndexType> LastDef, LastUse; in computeInitialLiveRanges() local
304 auto closeRange = [&LastUse,&LastDef,&LiveMap] (RegisterRef R) -> void { in computeInitialLiveRanges()
305 auto LD = LastDef[R], LU = LastUse[R]; in computeInitialLiveRanges()
311 LastUse[R] = LastDef[R] = IndexType::None; in computeInitialLiveRanges()
329 LastUse[S] = Index; in computeInitialLiveRanges()
380 if (LastDef[S] != IndexType::None || LastUse[S] != IndexType::None) in computeInitialLiveRanges()
389 if (LastDef[S] != IndexType::None || LastUse[S] != IndexType::None) in computeInitialLiveRanges()
392 LastDef[S] = LastUse[S] = Index; in computeInitialLiveRanges()
404 LastUse[R] = IndexType::Exit; in computeInitialLiveRanges()
408 for (auto &I : LastUse) in computeInitialLiveRanges()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DRegAllocFast.cpp85 MachineInstr *LastUse = nullptr; ///< Last instr to use reg. member
311 if (!LR.LastUse) return; in addKillFlag()
312 MachineOperand &MO = LR.LastUse->getOperand(LR.LastOpNum); in addKillFlag()
313 if (MO.isUse() && !LR.LastUse->isRegTiedToDefOperand(LR.LastOpNum)) { in addKillFlag()
365 bool SpillKill = MachineBasicBlock::iterator(LR.LastUse) != MI; in spillVirtReg()
371 LR.LastUse = nullptr; // Don't kill register again in spillVirtReg()
645 } else if (LRI->LastUse) { in defineVirtReg()
648 if (LRI->LastUse != &MI || LRI->LastUse->getOperand(LRI->LastOpNum).isUse()) in defineVirtReg()
652 LRI->LastUse = &MI; in defineVirtReg()
699 LRI->LastUse = &MI; in reloadVirtReg()
H A 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()
H A DTwoAddressInstructionPass.cpp388 unsigned LastUse = Dist; in noUseAfterLastDef() local
396 if (MO.isUse() && DI->second < LastUse) in noUseAfterLastDef()
397 LastUse = DI->second; in noUseAfterLastDef()
402 return !(LastUse > LastDef && LastUse < Dist); in noUseAfterLastDef()
H A DLiveIntervals.cpp1391 SlotIndex LastUse = Before; in findLastUseBefore() local
1402 if (InstSlot > LastUse && InstSlot < OldIdx) in findLastUseBefore()
1403 LastUse = InstSlot.getRegSlot(); in findLastUseBefore()
1405 return LastUse; in findLastUseBefore()
H A DSplitKit.cpp1246 SlotIndex LastUse = End.getPrevSlot(); in extendPHIRange() local
1254 if (PSR.liveAt(LastUse)) in extendPHIRange()