Home
last modified time | relevance | path

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

12345

/freebsd/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()
349 Loop2Region[LI->getLoopFor(TheLoop->getHeader())] = TheRegion; in buildPlainCFG()
391 Loop *LoopForBB = LI->getLoopFor(BB); in buildPlainCFG()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DLoopInfo.h456 Loop *ToLoop = getLoopFor(I->getParent()); in replacementPreservesLCSSAForm()
462 return ToLoop->contains(getLoopFor(From->getParent())); in replacementPreservesLCSSAForm()
482 auto *OldLoop = getLoopFor(OldBB); in movementPreservesLCSSAForm()
483 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm()
506 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm()
528 if (DefBlock != NewBB && getLoopFor(DefBlock) != NewLoop) in movementPreservesLCSSAForm()
H A DCFG.h153 for (const auto *Lp = LI.getLoopFor(Src); Lp; Lp = Lp->getParentLoop()) { in containsIrreducibleCFG()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopSimplifyCFG.cpp93 Loop *BBL = LI.getLoopFor(BB); in getInnermostLoopFor()
236 bool TakeFoldCandidate = TheOnlySucc && LI.getLoopFor(BB) == &L; in analyze()
274 return !TheOnlySucc || TheOnlySucc == To || LI.getLoopFor(From) != &L; in analyze()
384 if (Loop *OuterLoop = LI.getLoopFor(Preheader)) { in handleDeadExits()
448 assert(LI.getLoopFor(BB) != &L && "Attempt to remove current loop!"); in deleteDeadLoopBlocks()
449 Loop *DL = LI.getLoopFor(BB); in deleteDeadLoopBlocks()
481 assert(LI.getLoopFor(BB) == &L && "Should be a loop block!"); in foldTerminators()
677 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 DSimpleLoopUnswitch.cpp421 if (Loop *ExitL = LI.getLoopFor(ExitBB)) in hoistLoopToNewParent()
435 assert(OldParentL == LI.getLoopFor(&Preheader) && in hoistLoopToNewParent()
482 Loop *TopMost = LI.getLoopFor(ExitBB); in getTopMostExitingLoop()
1372 if (LI.getLoopFor(BB) == &OrigL) in cloneLoopNest()
1444 if (Loop *ExitL = LI.getLoopFor(ExitBB)) { in buildClonedLoops()
1532 if (LI.getLoopFor(BB) == &OrigL) { in buildClonedLoops()
1647 assert(LI.getLoopFor(BB) == OuterL && in buildClonedLoops()
1843 if (Loop *InnerL = LI.getLoopFor(BB)) in recomputeLoopBlockSet()
1920 if (Loop *ExitL = LI.getLoopFor(ExitBB)) { in rebuildLoopAfterUnswitch()
2000 Loop &ExitL = *LI.getLoopFor(ExitB in rebuildLoopAfterUnswitch()
[all...]
H A DTLSVariableHoist.cpp154 if (LI->getLoopFor(BB)) in oneUseOutsideLoop()
203 if (Loop *L = LI->getLoopFor(BB)) { in findInsertPos()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DShrinkWrap.cpp648 MLI->getLoopFor(NewSave))) in postShrinkWrapping()
678 assert((!MLI->getLoopFor(Save) && !MLI->getLoopFor(Restore)) && in postShrinkWrapping()
759 MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
770 if (Restore && (MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
781 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/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/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 DBasicBlockUtils.cpp848 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge()
862 if (LI->getLoopFor(P) != BBLoop) { in ehAwareSplitEdge()
931 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge()
934 if (Loop *SuccLoop = LI->getLoopFor(Succ)) { in ehAwareSplitEdge()
1049 if (Loop *L = LI->getLoopFor(Old)) in SplitBlockImpl()
1114 if (Loop *L = LI->getLoopFor(Old)) in splitBlockBefore()
1193 Loop *L = LI->getLoopFor(OldBB); in UpdateAnalysisInformation()
1209 if (Loop *PL = LI->getLoopFor(Pred)) in UpdateAnalysisInformation()
1234 if (Loop *PredLoop = LI->getLoopFor(Pred)) { in UpdateAnalysisInformation()
1359 L = LI->getLoopFor(BB); 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 DLoopUnroll.cpp129 if (LI->getLoopFor(BB) == L) in needToInsertPhisForLCSSA()
134 Loop *DefLoop = LI->getLoopFor(Def->getParent()); in needToInsertPhisForLCSSA()
154 const Loop *OldLoop = LI->getLoopFor(OriginalBB); in addClonedBlockToLoopInfo()
727 assert((*BB != Header || LI->getLoopFor(*BB) == L) && in UnrollLoop()
1061 Loop *LatchLoop = LI->getLoopFor(Latches.back()); in UnrollLoop()
H A DSimplifyIndVar.cpp218 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in makeIVComparisonInvariant()
263 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in eliminateIVComparison()
304 const Loop *L = LI->getLoopFor(SDiv->getParent()); in eliminateSDiv()
380 const Loop *ICmpLoop = LI->getLoopFor(Rem->getParent()); in simplifyIVRemainder()
1015 SimplifyIndvar SIV(LI->getLoopFor(CurrIV->getParent()), SE, DT, LI, TTI, in simplifyUsersOfIV()
1217 auto *L = LI->getLoopFor(DefI->getParent()); in getInsertPointForUses()
1218 assert(!L || L->contains(LI->getLoopFor(InsertPt->getParent()))); in getInsertPointForUses()
1221 if (LI->getLoopFor(DTN->getBlock()) == L) in getInsertPointForUses()
1231 L(LI->getLoopFor(OrigPhi->getParent())), SE(SEv), DT(DTree), in WidenIV()
1243 for (const Loop *L = LI->getLoopFor(Use->getParent()); in createExtendInst()
[all …]
/freebsd/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.cpp476 return isBlockInLCSSAForm(*LI.getLoopFor(BB), *BB, DT, IgnoreTokens); in isRecursivelyLCSSAForm()
732 Loop *L = LI->getLoopFor(POI); in updateBlockParents()
761 Loop *L = LI->getLoopFor(*POI); in updateBlockParents()
778 Loop *OuterParent = LI->getLoopFor(BB); in removeBlocksFromAncestors()
839 Loop *L = LI->getLoopFor(Succ); in getNearestLoop()
897 if (getLoopFor(BB) != Unloop) in erase()
953 const Loop *L = getLoopFor(I->getParent()); in wouldBeOutOfLoopUseRequiringLCSSA()
H A DCFG.cpp129 const Loop *L = LI->getLoopFor(BB); in getOutermostLoop()
298 if (LI && LI->getLoopFor(BB) != nullptr) in isPotentiallyReachable()
H A DIVUsers.cpp65 SE->getSCEVAtScope(AR, LI->getLoopFor(I->getParent())) != AR); in isInteresting()
190 if (LI->getLoopFor(User->getParent()) != L) { in AddUsersIfInteresting()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DGenericLoopInfo.h602 LoopT *getLoopFor(const BlockT *BB) const { return BBMap.lookup(BB); }
604 /// Same as getLoopFor.
605 const LoopT *operator[](const BlockT *BB) const { return getLoopFor(BB); }
610 const LoopT *L = getLoopFor(BB);
616 const LoopT *L = getLoopFor(BB);
612 LoopT *getLoopFor(const BlockT *BB) const { return BBMap.lookup(BB); } getLoopFor() function
/freebsd/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/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/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