Home
last modified time | relevance | path

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

12345

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanHCFGBuilder.cpp87 Loop *LoopForBB = LI->getLoopFor(BB); in setVPBBPredsFromBB()
88 if (!SinglePred || LI->getLoopFor(SinglePred) == LoopForBB) in setVPBBPredsFromBB()
92 assert(SinglePred == LI->getLoopFor(SinglePred)->getLoopLatch() && in setVPBBPredsFromBB()
118 Loop *LoopOfBB = LI->getLoopFor(BB); in setRegionPredsFromBB()
133 Loop *L = LI->getLoopFor(Phi->getParent()); in fixPhiNodes()
189 Loop *LoopOfBB = LI->getLoopFor(BB); in getOrCreateVPBB()
377 Loop *LoopForBB = LI->getLoopFor(BB); in buildPlainCFG()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DLoopInfo.h451 Loop *ToLoop = getLoopFor(I->getParent()); in replacementPreservesLCSSAForm()
457 return ToLoop->contains(getLoopFor(From->getParent())); in replacementPreservesLCSSAForm()
477 auto *OldLoop = getLoopFor(OldBB); in movementPreservesLCSSAForm()
478 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm()
501 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm()
523 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-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineLoopInfo.h135 inline MachineLoop *getLoopFor(const MachineBasicBlock *BB) const { in getLoopFor() function
136 return LI.getLoopFor(BB); in getLoopFor()
141 return LI.getLoopFor(BB);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopSimplifyCFG.cpp94 Loop *BBL = LI.getLoopFor(BB); in getInnermostLoopFor()
237 bool TakeFoldCandidate = TheOnlySucc && LI.getLoopFor(BB) == &L; in analyze()
275 return !TheOnlySucc || TheOnlySucc == To || LI.getLoopFor(From) != &L; in analyze()
385 if (Loop *OuterLoop = LI.getLoopFor(Preheader)) { in handleDeadExits()
449 assert(LI.getLoopFor(BB) != &L && "Attempt to remove current loop!"); in deleteDeadLoopBlocks()
450 Loop *DL = LI.getLoopFor(BB); in deleteDeadLoopBlocks()
482 assert(LI.getLoopFor(BB) == &L && "Should be a loop block!"); in foldTerminators()
678 if (!Pred || !Pred->getSingleSuccessor() || LI.getLoopFor(Pred) != &L) in mergeBlocksIntoPredecessors()
H A DSink.cpp91 Loop *succ = LI.getLoopFor(SuccToSinkTo); in IsAcceptableTarget()
92 Loop *cur = LI.getLoopFor(Inst->getParent()); in IsAcceptableTarget()
H A DTLSVariableHoist.cpp154 if (LI->getLoopFor(BB)) in oneUseOutsideLoop()
203 if (Loop *L = LI->getLoopFor(BB)) { in findInsertPos()
H A DSimpleLoopUnswitch.cpp419 if (Loop *ExitL = LI.getLoopFor(ExitBB)) in hoistLoopToNewParent()
480 Loop *TopMost = LI.getLoopFor(ExitBB); in getTopMostExitingLoop()
1358 if (LI.getLoopFor(BB) == &OrigL) in cloneLoopNest()
1518 if (LI.getLoopFor(BB) == &OrigL) { in buildClonedLoops()
1633 assert(LI.getLoopFor(BB) == OuterL && in buildClonedLoops()
1829 if (Loop *InnerL = LI.getLoopFor(BB)) in recomputeLoopBlockSet()
1986 Loop &ExitL = *LI.getLoopFor(ExitBB); in rebuildLoopAfterUnswitch()
2031 if (Loop *BBL = LI.getLoopFor(BB)) in rebuildLoopAfterUnswitch()
2045 if (Loop *BBL = LI.getLoopFor(BB)) in rebuildLoopAfterUnswitch()
2910 if (LI.getLoopFor(BB) != &L) in collectUnswitchCandidates()
[all …]
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DShrinkWrap.cpp646 MLI->getLoopFor(NewSave))) in postShrinkWrapping()
676 assert((!MLI->getLoopFor(Save) && !MLI->getLoopFor(Restore)) && in postShrinkWrapping()
757 MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
768 if (Restore && (MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
779 MLI->getLoopFor(Restore)->getExitingBlocks(ExitBlocks); in updateSaveRestorePoints()
H A DMachineTraceMetrics.cpp168 MachineTraceMetrics::Ensemble::getLoopFor(const MachineBasicBlock *MBB) const { in getLoopFor() function in MachineTraceMetrics::Ensemble
169 return MTM.Loops->getLoopFor(MBB); in getLoopFor()
343 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTracePred()
371 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTraceSucc()
379 if (isExitingLoop(CurLoop, getLoopFor(Succ))) in pickTraceSucc()
478 if (const MachineLoop *FromLoop = LB.Loops->getLoopFor(*From)) { in insertEdge()
483 if (isExitingLoop(FromLoop, LB.Loops->getLoopFor(To))) in insertEdge()
615 const MachineLoop *Loop = getLoopFor(MBB); in verify()
623 const MachineLoop *Loop = getLoopFor(MBB); in verify()
624 const MachineLoop *SuccLoop = getLoopFor(TBI.Succ); in verify()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBreakCriticalEdges.cpp134 if (Loop *TIL = LI->getLoopFor(TIBB)) { in SplitKnownCriticalEdge()
148 if (LI->getLoopFor(P) != TIL) { in SplitKnownCriticalEdge()
258 if (Loop *TIL = LI->getLoopFor(TIBB)) { in SplitKnownCriticalEdge()
261 if (Loop *DestLoop = LI->getLoopFor(DestBB)) { in SplitKnownCriticalEdge()
H A DLCSSA.cpp98 Loop *L = LI.getLoopFor(InstBB); in formLCSSAForInstructions()
200 if (auto *OtherLoop = LI.getLoopFor(ExitBB)) in formLCSSAForInstructions()
280 if (auto *OtherLoop = LI.getLoopFor(InsertedPN->getParent())) in formLCSSAForInstructions()
396 if (LI->getLoopFor(BB) != &L) in formLCSSA()
H A DLoopUnroll.cpp126 if (LI->getLoopFor(BB) == L) in needToInsertPhisForLCSSA()
131 Loop *DefLoop = LI->getLoopFor(Def->getParent()); in needToInsertPhisForLCSSA()
151 const Loop *OldLoop = LI->getLoopFor(OriginalBB); in addClonedBlockToLoopInfo()
575 assert((*BB != Header || LI->getLoopFor(*BB) == L) && in UnrollLoop()
899 Loop *LatchLoop = LI->getLoopFor(Latches.back()); in UnrollLoop()
H A DBasicBlockUtils.cpp837 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge()
851 if (LI->getLoopFor(P) != BBLoop) { in ehAwareSplitEdge()
920 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge()
923 if (Loop *SuccLoop = LI->getLoopFor(Succ)) { in ehAwareSplitEdge()
1038 if (Loop *L = LI->getLoopFor(Old)) in SplitBlockImpl()
1103 if (Loop *L = LI->getLoopFor(Old)) in splitBlockBefore()
1181 Loop *L = LI->getLoopFor(OldBB); in UpdateAnalysisInformation()
1197 if (Loop *PL = LI->getLoopFor(Pred)) in UpdateAnalysisInformation()
1347 L = LI->getLoopFor(BB); in SplitBlockPredecessorsImpl()
1397 Loop *IL = LI->getLoopFor(OldLatch); in SplitBlockPredecessorsImpl()
[all …]
H A DFixIrreducible.cpp138 if (LI.getLoopFor(BB) != Child) in INITIALIZE_PASS_DEPENDENCY()
222 if (LI.getLoopFor(BB) == ParentLoop) { in createNaturalLoopInternal()
H A DSimplifyIndVar.cpp210 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in makeIVComparisonInvariant()
254 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in eliminateIVComparison()
295 const Loop *L = LI->getLoopFor(SDiv->getParent()); in eliminateSDiv()
368 const Loop *ICmpLoop = LI->getLoopFor(Rem->getParent()); in simplifyIVRemainder()
988 SimplifyIndvar SIV(LI->getLoopFor(CurrIV->getParent()), SE, DT, LI, TTI, in simplifyUsersOfIV()
1187 auto *L = LI->getLoopFor(DefI->getParent()); in getInsertPointForUses()
1188 assert(!L || L->contains(LI->getLoopFor(InsertPt->getParent()))); in getInsertPointForUses()
1191 if (LI->getLoopFor(DTN->getBlock()) == L) in getInsertPointForUses()
1201 L(LI->getLoopFor(OrigPhi->getParent())), SE(SEv), DT(DTree), in WidenIV()
1213 for (const Loop *L = LI->getLoopFor(Use->getParent()); in createExtendInst()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DGenericLoopInfo.h602 LoopT *getLoopFor(const BlockT *BB) const { return BBMap.lookup(BB); } in getLoopFor() function
605 const LoopT *operator[](const BlockT *BB) const { return getLoopFor(BB); }
610 const LoopT *L = getLoopFor(BB); in getLoopDepth()
616 const LoopT *L = getLoopFor(BB); in isLoopHeader()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DMustExecute.cpp332 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter()
345 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter()
413 const Loop *L = LI ? LI->getLoopFor(InitBB) : nullptr; in findForwardJoinPoint()
518 const Loop *L = LI->getLoopFor(ToBB); in findForwardJoinPoint()
555 const Loop *L = LI ? LI->getLoopFor(InitBB) : nullptr; in findBackwardJoinPoint()
H A DLoopInfo.cpp475 return isBlockInLCSSAForm(*LI.getLoopFor(BB), *BB, DT, IgnoreTokens); in isRecursivelyLCSSAForm()
720 Loop *L = LI->getLoopFor(POI); in updateBlockParents()
749 Loop *L = LI->getLoopFor(*POI); in updateBlockParents()
766 Loop *OuterParent = LI->getLoopFor(BB); in removeBlocksFromAncestors()
828 Loop *L = LI->getLoopFor(*I); in getNearestLoop()
886 if (getLoopFor(BB) != Unloop) in erase()
942 const Loop *L = getLoopFor(I->getParent()); in wouldBeOutOfLoopUseRequiringLCSSA()
H A DCFG.cpp129 const Loop *L = LI->getLoopFor(BB); in getOutermostLoop()
248 if (LI && LI->getLoopFor(BB) != nullptr) in isPotentiallyReachable()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIOptimizeVGPRLiveRange.cpp250 Loops->getLoopFor(DefMBB) == Loops->getLoopFor(If)) { in collectCandidateRegisters()
295 Loops->getLoopFor(DefMBB) == Loops->getLoopFor(If)) in collectCandidateRegisters()
/freebsd-14.2/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()
621 if (MLI->getLoopFor(B) != L) in visitBlock()

12345