Home
last modified time | relevance | path

Searched refs:getLoopFor (Results 1 – 25 of 97) sorted by relevance

1234

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineLoopInfo.h127 inline MachineLoop *getLoopFor(const MachineBasicBlock *BB) const { in getLoopFor() function
128 return LI.getLoopFor(BB); in getLoopFor()
133 return LI.getLoopFor(BB);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopSimplifyCFG.cpp102 Loop *BBL = LI.getLoopFor(BB); in getInnermostLoopFor()
245 bool TakeFoldCandidate = TheOnlySucc && LI.getLoopFor(BB) == &L; in analyze()
279 return !TheOnlySucc || TheOnlySucc == To || LI.getLoopFor(From) != &L; in analyze()
389 if (Loop *OuterLoop = LI.getLoopFor(Preheader)) { in handleDeadExits()
452 assert(LI.getLoopFor(BB) != &L && "Attempt to remove current loop!"); in deleteDeadLoopBlocks()
453 Loop *DL = LI.getLoopFor(BB); in deleteDeadLoopBlocks()
485 assert(LI.getLoopFor(BB) == &L && "Should be a loop block!"); in foldTerminators()
665 if (!Pred || !Pred->getSingleSuccessor() || LI.getLoopFor(Pred) != &L) in mergeBlocksIntoPredecessors()
H A DSimpleLoopUnswitch.cpp340 if (Loop *ExitL = LI.getLoopFor(ExitBB)) in hoistLoopToNewParent()
400 Loop *TopMost = LI.getLoopFor(ExitBB); in getTopMostExitingLoop()
715 Loop *ExitL = LI.getLoopFor(DefaultExitBB); in unswitchTrivialSwitch()
1260 if (LI.getLoopFor(BB) == &OrigL) in cloneLoopNest()
1420 if (LI.getLoopFor(BB) == &OrigL) { in buildClonedLoops()
1535 assert(LI.getLoopFor(BB) == OuterL && in buildClonedLoops()
1729 if (Loop *InnerL = LI.getLoopFor(BB)) in recomputeLoopBlockSet()
1885 Loop &ExitL = *LI.getLoopFor(ExitBB); in rebuildLoopAfterUnswitch()
1930 if (Loop *BBL = LI.getLoopFor(BB)) in rebuildLoopAfterUnswitch()
1944 if (Loop *BBL = LI.getLoopFor(BB)) in rebuildLoopAfterUnswitch()
[all …]
H A DSink.cpp96 Loop *succ = LI.getLoopFor(SuccToSinkTo); in IsAcceptableTarget()
97 Loop *cur = LI.getLoopFor(Inst->getParent()); in IsAcceptableTarget()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DLoopInfo.h967 LoopT *getLoopFor(const BlockT *BB) const { return BBMap.lookup(BB); } in getLoopFor() function
970 const LoopT *operator[](const BlockT *BB) const { return getLoopFor(BB); }
975 const LoopT *L = getLoopFor(BB); in getLoopDepth()
981 const LoopT *L = getLoopFor(BB); in isLoopHeader()
1127 Loop *ToLoop = getLoopFor(I->getParent()); in replacementPreservesLCSSAForm()
1133 return ToLoop->contains(getLoopFor(From->getParent())); in replacementPreservesLCSSAForm()
1153 auto *OldLoop = getLoopFor(OldBB); in movementPreservesLCSSAForm()
1154 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm()
1177 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm()
1199 if (DefBlock != NewBB && getLoopFor(DefBlock) != NewLoop) in movementPreservesLCSSAForm()
H A DCFG.h141 for (const auto *Lp = LI.getLoopFor(Src); Lp; Lp = Lp->getParentLoop()) { in containsIrreducibleCFG()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DShrinkWrap.cpp400 MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
411 if (Restore && (MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
422 MLI->getLoopFor(Restore)->getExitingBlocks(ExitBlocks); in updateSaveRestorePoints()
H A DMachineTraceMetrics.cpp169 MachineTraceMetrics::Ensemble::getLoopFor(const MachineBasicBlock *MBB) const { in getLoopFor() function in MachineTraceMetrics::Ensemble
170 return MTM.Loops->getLoopFor(MBB); in getLoopFor()
329 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTracePred()
357 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTraceSucc()
365 if (isExitingLoop(CurLoop, getLoopFor(Succ))) in pickTraceSucc()
460 if (const MachineLoop *FromLoop = LB.Loops->getLoopFor(*From)) { in insertEdge()
465 if (isExitingLoop(FromLoop, LB.Loops->getLoopFor(To))) in insertEdge()
597 const MachineLoop *Loop = getLoopFor(MBB); in verify()
605 const MachineLoop *Loop = getLoopFor(MBB); in verify()
606 const MachineLoop *SuccLoop = getLoopFor(TBI.Succ); in verify()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblySortRegion.cpp18 const auto *ML = MLI.getLoopFor(MBB); in getRegionFor()
47 return getBottom(MLI.getLoopFor(R->getHeader())); in getBottom()
H A DWebAssemblyCFGSort.cpp199 if (MachineLoop *L = MLI.getLoopFor(&MBB)) in sortBlocks()
246 if (MachineLoop *SuccL = MLI.getLoopFor(Succ)) in sortBlocks()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DSyncDependenceAnalysis.cpp148 auto *NestedLoop = LI.getLoopFor(NextBB); in computeStackPO()
335 const auto *DivBlockLoop = LI.getLoopFor(&DivTermBlock); in computeJoinPoints()
356 const auto *BlockLoop = LI.getLoopFor(SuccBlock); in computeJoinPoints()
377 auto *BlockLoop = LI.getLoopFor(Block); in computeJoinPoints()
H A DDivergenceAnalysis.cpp118 for (const auto *Loop = LI.getLoopFor(Inst->getParent()); in isTemporalDivergent()
252 const Loop *ExitLevelLoop = LI.getLoopFor(&DivExit); in propagateLoopExitDivergence()
298 const auto *BranchLoop = LI.getLoopFor(Term.getParent()); in analyzeControlDivergence()
H A DLoopInfo.cpp474 return isBlockInLCSSAForm(*LI.getLoopFor(BB), *BB, DT); in isRecursivelyLCSSAForm()
723 Loop *L = LI->getLoopFor(POI); in updateBlockParents()
751 Loop *L = LI->getLoopFor(*POI); in updateBlockParents()
768 Loop *OuterParent = LI->getLoopFor(BB); in removeBlocksFromAncestors()
830 Loop *L = LI->getLoopFor(*I); in getNearestLoop()
888 if (getLoopFor(BB) != Unloop) in erase()
945 const Loop *L = getLoopFor(I->getParent()); in wouldBeOutOfLoopUseRequiringLCSSA()
H A DIVUsers.cpp69 SE->getSCEVAtScope(AR, LI->getLoopFor(I->getParent())) != AR); in isInteresting()
102 Loop *DomLoop = LI->getLoopFor(DomBB); in isSimplifiedLoopNest()
235 if (LI->getLoopFor(User->getParent()) != L) { in AddUsersImpl()
H A DMustExecute.cpp420 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter()
433 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter()
511 const Loop *L = LI ? LI->getLoopFor(InitBB) : nullptr; in findForwardJoinPoint()
616 const Loop *L = LI->getLoopFor(ToBB); in findForwardJoinPoint()
653 const Loop *L = LI ? LI->getLoopFor(InitBB) : nullptr; in findBackwardJoinPoint()
H A DCFG.cpp129 const Loop *L = LI->getLoopFor(BB); in getOutermostLoop()
253 if (LI && LI->getLoopFor(BB) != nullptr) in isPotentiallyReachable()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLCSSA.cpp101 Loop *L = LI.getLoopFor(InstBB); in formLCSSAForInstructions()
198 if (auto *OtherLoop = LI.getLoopFor(ExitBB)) in formLCSSAForInstructions()
255 if (auto *OtherLoop = LI.getLoopFor(InsertedPN->getParent())) in formLCSSAForInstructions()
367 if (LI->getLoopFor(BB) != &L) in formLCSSA()
H A DBreakCriticalEdges.cpp137 if (Loop *TIL = LI->getLoopFor(TIBB)) { in SplitKnownCriticalEdge()
151 if (LI->getLoopFor(P) != TIL) { in SplitKnownCriticalEdge()
264 if (Loop *TIL = LI->getLoopFor(TIBB)) { in SplitKnownCriticalEdge()
267 if (Loop *DestLoop = LI->getLoopFor(DestBB)) { in SplitKnownCriticalEdge()
H A DLoopUnroll.cpp115 if (LI->getLoopFor(BB) == L) in needToInsertPhisForLCSSA()
120 Loop *DefLoop = LI->getLoopFor(Def->getParent()); in needToInsertPhisForLCSSA()
140 const Loop *OldLoop = LI->getLoopFor(OriginalBB); in addClonedBlockToLoopInfo()
528 assert((*BB != Header || LI->getLoopFor(*BB) == L) && in UnrollLoop()
799 Loop *LatchLoop = LI->getLoopFor(Latches.back()); in UnrollLoop()
H A DBasicBlockUtils.cpp580 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge()
594 if (LI->getLoopFor(P) != BBLoop) { in ehAwareSplitEdge()
663 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge()
666 if (Loop *SuccLoop = LI->getLoopFor(Succ)) { in ehAwareSplitEdge()
780 if (Loop *L = LI->getLoopFor(Old)) in SplitBlockImpl()
845 if (Loop *L = LI->getLoopFor(Old)) in splitBlockBefore()
922 Loop *L = LI->getLoopFor(OldBB); in UpdateAnalysisInformation()
938 if (Loop *PL = LI->getLoopFor(Pred)) in UpdateAnalysisInformation()
963 if (Loop *PredLoop = LI->getLoopFor(Pred)) { in UpdateAnalysisInformation()
1091 L = LI->getLoopFor(BB); in SplitBlockPredecessorsImpl()
[all …]
H A DSimplifyIndVar.cpp208 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in makeIVComparisonInvariant()
278 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in eliminateIVComparison()
318 const Loop *L = LI->getLoopFor(SDiv->getParent()); in eliminateSDiv()
390 const Loop *ICmpLoop = LI->getLoopFor(Rem->getParent()); in simplifyIVRemainder()
920 SimplifyIndvar SIV(LI->getLoopFor(CurrIV->getParent()), SE, DT, LI, TTI, in simplifyUsersOfIV()
1118 auto *L = LI->getLoopFor(DefI->getParent()); in getInsertPointForUses()
1119 assert(!L || L->contains(LI->getLoopFor(InsertPt->getParent()))); in getInsertPointForUses()
1122 if (LI->getLoopFor(DTN->getBlock()) == L) in getInsertPointForUses()
1132 L(LI->getLoopFor(OrigPhi->getParent())), SE(SEv), DT(DTree), in WidenIV()
1144 for (const Loop *L = LI->getLoopFor(Use->getParent()); in createExtendInst()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIOptimizeVGPRLiveRange.cpp240 Loops->getLoopFor(DefMBB) == Loops->getLoopFor(If)) { in collectCandidateRegisters()
285 Loops->getLoopFor(DefMBB) == Loops->getLoopFor(If)) in collectCandidateRegisters()
H A DSIAnnotateControlFlow.cpp257 llvm::Loop *L = LI->getLoopFor(BB); in handleLoop()
287 llvm::Loop *L = LI->getLoopFor(BB); in closeControlFlow()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZMachineScheduler.cpp89 LLVM_DEBUG(const MachineLoop *Loop = MLI->getLoopFor(MBB); in enterMBB()
96 getSingleSchedPred(MBB, MLI->getLoopFor(MBB)); in enterMBB()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp234 MachineLoop *L = MLI->getLoopFor(SB); in isPreheader()
294 bool TOk = (TNP == 1 && TNS == 1 && MLI->getLoopFor(TB) == L); in matchFlowPattern()
295 bool FOk = (FNP == 1 && FNS == 1 && MLI->getLoopFor(FB) == L); in matchFlowPattern()
299 if (SkipExitBranches && MLI->getLoopFor(TB) != MLI->getLoopFor(FB)) in matchFlowPattern()
623 if (MLI->getLoopFor(B) != L) in visitBlock()

1234