Home
last modified time | relevance | path

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

12345

/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DMachineLoopInfo.h126 inline MachineLoop *getLoopFor(const MachineBasicBlock *BB) const { in getLoopFor() function
127 return LI.getLoopFor(BB); in getLoopFor()
132 return LI.getLoopFor(BB);
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLoopSimplifyCFG.cpp96 Loop *BBL = LI.getLoopFor(BB); in getInnermostLoopFor()
239 bool TakeFoldCandidate = TheOnlySucc && LI.getLoopFor(BB) == &L; in analyze()
277 return !TheOnlySucc || TheOnlySucc == To || LI.getLoopFor(From) != &L; in analyze()
387 if (Loop *OuterLoop = LI.getLoopFor(Preheader)) { in handleDeadExits()
451 assert(LI.getLoopFor(BB) != &L && "Attempt to remove current loop!"); in deleteDeadLoopBlocks()
452 Loop *DL = LI.getLoopFor(BB); in deleteDeadLoopBlocks()
484 assert(LI.getLoopFor(BB) == &L && "Should be a loop block!"); in foldTerminators()
680 if (!Pred || !Pred->getSingleSuccessor() || LI.getLoopFor(Pred) != &L) in mergeBlocksIntoPredecessors()
H A DSimpleLoopUnswitch.cpp378 if (Loop *ExitL = LI.getLoopFor(ExitBB)) in hoistLoopToNewParent()
392 assert(OldParentL == LI.getLoopFor(&Preheader) && in hoistLoopToNewParent()
439 const Loop *TopMost = LI.getLoopFor(ExitBB); in getTopMostExitingLoop()
757 Loop *ExitL = LI.getLoopFor(DefaultExitBB); in unswitchTrivialSwitch()
774 Loop *ExitL = LI.getLoopFor(CaseI->getCaseSuccessor()); in unswitchTrivialSwitch()
1308 if (LI.getLoopFor(BB) == &OrigL) in cloneLoopNest()
1380 if (Loop *ExitL = LI.getLoopFor(ExitBB)) { in buildClonedLoops()
1468 if (LI.getLoopFor(BB) == &OrigL) { in buildClonedLoops()
1583 assert(LI.getLoopFor(BB) == OuterL && in buildClonedLoops()
1780 if (Loop *InnerL = LI.getLoopFor(BB)) in recomputeLoopBlockSet()
[all …]
H A DSink.cpp92 Loop *succ = LI.getLoopFor(SuccToSinkTo); in IsAcceptableTarget()
93 Loop *cur = LI.getLoopFor(Inst->getParent()); in IsAcceptableTarget()
H A DTLSVariableHoist.cpp155 if (LI->getLoopFor(BB)) in oneUseOutsideLoop()
204 if (Loop *L = LI->getLoopFor(BB)) { in findInsertPos()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DLoopInfo.h992 LoopT *getLoopFor(const BlockT *BB) const { return BBMap.lookup(BB); } in getLoopFor() function
995 const LoopT *operator[](const BlockT *BB) const { return getLoopFor(BB); }
1000 const LoopT *L = getLoopFor(BB); in getLoopDepth()
1006 const LoopT *L = getLoopFor(BB); in isLoopHeader()
1152 Loop *ToLoop = getLoopFor(I->getParent()); in replacementPreservesLCSSAForm()
1158 return ToLoop->contains(getLoopFor(From->getParent())); in replacementPreservesLCSSAForm()
1178 auto *OldLoop = getLoopFor(OldBB); in movementPreservesLCSSAForm()
1179 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm()
1202 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm()
1224 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()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DShrinkWrap.cpp408 MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
419 if (Restore && (MLI->getLoopFor(Save) || MLI->getLoopFor(Restore))) { in updateSaveRestorePoints()
430 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()
328 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTracePred()
356 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTraceSucc()
364 if (isExitingLoop(CurLoop, getLoopFor(Succ))) in pickTraceSucc()
459 if (const MachineLoop *FromLoop = LB.Loops->getLoopFor(*From)) { in insertEdge()
464 if (isExitingLoop(FromLoop, LB.Loops->getLoopFor(To))) in insertEdge()
596 const MachineLoop *Loop = getLoopFor(MBB); in verify()
604 const MachineLoop *Loop = getLoopFor(MBB); in verify()
605 const MachineLoop *SuccLoop = getLoopFor(TBI.Succ); in verify()
[all …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DSyncDependenceAnalysis.cpp165 auto *NestedLoop = LI.getLoopFor(NextBB); in computeStackPO()
353 const auto *DivBlockLoop = LI.getLoopFor(&DivTermBlock); in computeJoinPoints()
374 const auto *BlockLoop = LI.getLoopFor(SuccBlock); in computeJoinPoints()
395 auto *BlockLoop = LI.getLoopFor(Block); in computeJoinPoints()
H A DDivergenceAnalysis.cpp117 for (const auto *Loop = LI.getLoopFor(Inst->getParent()); in isTemporalDivergent()
251 const Loop *ExitLevelLoop = LI.getLoopFor(&DivExit); in propagateLoopExitDivergence()
297 const auto *BranchLoop = LI.getLoopFor(Term.getParent()); in analyzeControlDivergence()
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()
943 const Loop *L = getLoopFor(I->getParent()); in wouldBeOutOfLoopUseRequiringLCSSA()
H A DMustExecute.cpp427 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter()
440 Loop *L = LI.getLoopFor(I.getParent()); in MustExecuteAnnotatedWriter()
518 const Loop *L = LI ? LI->getLoopFor(InitBB) : nullptr; in findForwardJoinPoint()
623 const Loop *L = LI->getLoopFor(ToBB); in findForwardJoinPoint()
660 const Loop *L = LI ? LI->getLoopFor(InitBB) : nullptr; in findBackwardJoinPoint()
H A DCFG.cpp129 const Loop *L = LI->getLoopFor(BB); in getOutermostLoop()
248 if (LI && LI->getLoopFor(BB) != nullptr) in isPotentiallyReachable()
/openbsd-src/gnu/llvm/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.cpp100 Loop *L = LI.getLoopFor(InstBB); in formLCSSAForInstructions()
203 if (auto *OtherLoop = LI.getLoopFor(ExitBB)) in formLCSSAForInstructions()
260 if (auto *OtherLoop = LI.getLoopFor(InsertedPN->getParent())) in formLCSSAForInstructions()
374 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()
546 assert((*BB != Header || LI->getLoopFor(*BB) == L) && in UnrollLoop()
862 Loop *LatchLoop = LI->getLoopFor(Latches.back()); in UnrollLoop()
H A DBasicBlockUtils.cpp702 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge()
716 if (LI->getLoopFor(P) != BBLoop) { in ehAwareSplitEdge()
785 if (Loop *BBLoop = LI->getLoopFor(BB)) { in ehAwareSplitEdge()
788 if (Loop *SuccLoop = LI->getLoopFor(Succ)) { in ehAwareSplitEdge()
901 if (Loop *L = LI->getLoopFor(Old)) in SplitBlockImpl()
966 if (Loop *L = LI->getLoopFor(Old)) in splitBlockBefore()
1044 Loop *L = LI->getLoopFor(OldBB); in UpdateAnalysisInformation()
1060 if (Loop *PL = LI->getLoopFor(Pred)) in UpdateAnalysisInformation()
1085 if (Loop *PredLoop = LI->getLoopFor(Pred)) { in UpdateAnalysisInformation()
1213 L = LI->getLoopFor(BB); in SplitBlockPredecessorsImpl()
[all …]
H A DFixIrreducible.cpp141 if (LI.getLoopFor(BB) != Child) in INITIALIZE_PASS_DEPENDENCY()
225 if (LI.getLoopFor(BB) == ParentLoop) { in createNaturalLoopInternal()
H A DSimplifyIndVar.cpp207 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in makeIVComparisonInvariant()
249 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in eliminateIVComparison()
290 const Loop *L = LI->getLoopFor(SDiv->getParent()); in eliminateSDiv()
363 const Loop *ICmpLoop = LI->getLoopFor(Rem->getParent()); in simplifyIVRemainder()
957 SimplifyIndvar SIV(LI->getLoopFor(CurrIV->getParent()), SE, DT, LI, TTI, in simplifyUsersOfIV()
1156 auto *L = LI->getLoopFor(DefI->getParent()); in getInsertPointForUses()
1157 assert(!L || L->contains(LI->getLoopFor(InsertPt->getParent()))); in getInsertPointForUses()
1160 if (LI->getLoopFor(DTN->getBlock()) == L) in getInsertPointForUses()
1170 L(LI->getLoopFor(OrigPhi->getParent())), SE(SEv), DT(DTree), in WidenIV()
1182 for (const Loop *L = LI->getLoopFor(Use->getParent()); in createExtendInst()
[all …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()

12345