Home
last modified time | relevance | path

Searched refs:CurLoop (Results 1 – 24 of 24) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopVersioningLICM.cpp121 Loop *CurLoop) in LoopVersioningLICM()
122 : AA(AA), SE(SE), LAIs(LAIs), LI(LI), CurLoop(CurLoop), in LoopVersioningLICM()
144 Loop *CurLoop; member
178 if (!CurLoop->isLoopSimplifyForm()) { in legalLoopStructure()
183 if (!CurLoop->getSubLoops().empty()) { in legalLoopStructure()
188 if (CurLoop->getNumBackEdges() != 1) { in legalLoopStructure()
193 if (!CurLoop->getExitingBlock()) { in legalLoopStructure()
200 if (CurLoop->getExitingBlock() != CurLoop->getLoopLatch()) { in legalLoopStructure()
206 if (CurLoop->isAnnotatedParallel()) { in legalLoopStructure()
380 LAI = &LAIs.getInfo(*CurLoop); in legalLoopInstructions()
[all …]
H A DLoopIdiomRecognize.cpp141 Loop *CurLoop = nullptr; member in __anon066a00fb0111::LoopIdiomRecognize
286 CurLoop = L; in runOnLoop()
344 if (LI->getLoopFor(BB) != CurLoop) in runOnCountableLoop()
1766 if (CurLoop->getNumBackEdges() != 1 || CurLoop->getNumBlocks() != 1) in recognizeAndInsertFFS()
1869 if (CurLoop->getNumBackEdges() != 1 || CurLoop->getNumBlocks() != 1) in recognizePopcount()
2052 SE->forgetLoop(CurLoop); in transformLoopToCountable()
2159 SE->forgetLoop(CurLoop); in transformLoopToPopcount()
2210 if (CurLoop->getNumBlocks() != 1 || CurLoop->getNumBackEdges() != 1) { in detectShiftUntilBitTestIdiom()
2519 SE->forgetLoop(CurLoop); in recognizeShiftUntilBitTest()
2567 if (CurLoop->getNumBlocks() != 1 || CurLoop->getNumBackEdges() != 1) { in detectShiftUntilZeroIdiom()
[all …]
H A DLICM.cpp566 if (inSubLoop(BB, CurLoop, LI)) in sinkRegion()
622 Worklist.insert(CurLoop); in sinkRegionForLoopNest()
645 Loop *CurLoop; member in __anon7e16e74e0511::ControlFlowHoister
659 : LI(LI), DT(DT), CurLoop(CurLoop), MSSAU(MSSAU) {} in ControlFlowHoister()
672 if (!CurLoop->contains(TrueDest) || !CurLoop->contains(FalseDest) || in registerPossiblyHoistableBranch()
799 if (CurLoop->getParentLoop()) in getOrCreateHoistedBlock()
887 LoopBlocksRPO Worklist(CurLoop); in hoistRegion()
1356 if (CurLoop->contains(UI) && in isFoldableInLoop()
1404 if (CurLoop->contains(UI)) { in isNotUsedOrFoldableInLoop()
1702 if (CurLoop->contains(User)) in sink()
[all …]
H A DSeparateConstOffsetFromGEP.cpp469 Loop *CurLoop);
1250 GetElementPtrInst *FirstGEP, GetElementPtrInst *SecondGEP, Loop *CurLoop) { in isLegalToSwapOperand() argument
1270 if (CurLoop->isLoopInvariant(FirstOffset)) in isLegalToSwapOperand()
H A DSimpleLoopUnswitch.cpp3624 auto *CurLoop = Worklist.pop_back_val(); in unswitchLoop() local
3625 if (!PSI->isColdBlock(CurLoop->getHeader(), BFI)) in unswitchLoop()
3627 Worklist.insert(Worklist.end(), CurLoop->getSubLoops().begin(), in unswitchLoop()
3628 CurLoop->getSubLoops().end()); in unswitchLoop()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineLICM.cpp148 if (ExitBlockMap.contains(CurLoop)) in isExitBlock()
152 CurLoop->getExitBlocks(ExitBlocks); in isExitBlock()
153 ExitBlockMap[CurLoop] = ExitBlocks; in isExitBlock()
229 MachineLoop *CurLoop);
554 CurLoop); in HoistRegionPostRA()
650 AddToLiveIns(Def, CurLoop); in HoistPostRA()
663 if (BB != CurLoop->getHeader()) { in IsGuaranteedToExecute()
756 if (!CurLoop->contains(BB)) in HoistOutOfLoop()
1034 if (!TII->shouldHoist(I, CurLoop)) in IsLICMCandidate()
1043 if (!IsLICMCandidate(I, CurLoop)) { in IsLoopInvariantInst()
[all …]
H A DPHIElimination.cpp682 const MachineLoop *CurLoop = MLI ? MLI->getLoopFor(&MBB) : nullptr; in SplitPHIEdges() local
683 bool IsLoopHeader = CurLoop && &MBB == CurLoop->getHeader(); in SplitPHIEdges()
700 if (IsLoopHeader && PreLoop == CurLoop && !SplitAllCriticalEdges) in SplitPHIEdges()
729 if (!ShouldSplit && CurLoop != PreLoop) { in SplitPHIEdges()
734 if (CurLoop) in SplitPHIEdges()
735 dbgs() << "CurLoop: " << *CurLoop; in SplitPHIEdges()
741 ShouldSplit = PreLoop && !PreLoop->contains(CurLoop); in SplitPHIEdges()
H A DMachineTraceMetrics.cpp343 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTracePred() local
345 if (CurLoop && MBB == CurLoop->getHeader()) in pickTracePred()
371 const MachineLoop *CurLoop = getLoopFor(MBB); in pickTraceSucc() local
376 if (CurLoop && Succ == CurLoop->getHeader()) in pickTraceSucc()
379 if (isExitingLoop(CurLoop, getLoopFor(Succ))) in pickTraceSucc()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DMustExecute.cpp53 BasicBlock *Header = CurLoop->getHeader(); in computeLoopSafetyInfo()
68 computeBlockColors(CurLoop); in computeLoopSafetyInfo()
85 for (const auto &BB : CurLoop->blocks()) in computeLoopSafetyInfo()
90 computeBlockColors(CurLoop); in computeLoopSafetyInfo()
161 const Loop *CurLoop, const BasicBlock *BB, in collectTransitivePredecessors() argument
165 if (BB == CurLoop->getHeader()) in collectTransitivePredecessors()
176 if (Pred == CurLoop->getHeader()) in collectTransitivePredecessors()
196 if (BB == CurLoop->getHeader()) in allLoopPathsLeadToBlock()
247 if (CurLoop->contains(Succ) || in allLoopPathsLeadToBlock()
264 if (Inst.getParent() == CurLoop->getHeader()) in isGuaranteedToExecute()
[all …]
H A DDependenceAnalysis.cpp445 AssociatedLoop = CurLoop; in setPoint()
454 AssociatedLoop = CurLoop; in setLine()
463 AssociatedLoop = CurLoop; in setDistance()
1583 CurLoop); in exactSIVtest()
1778 CurLoop); in weakZeroSrcSIVtest()
1887 CurLoop); in weakZeroDstSIVtest()
2241 Level = mapSrcLoop(CurLoop); in testSIV()
2254 symbolicRDIVtest(SrcCoeff, DstCoeff, SrcConst, DstConst, CurLoop, CurLoop); in testSIV()
2261 Level = mapSrcLoop(CurLoop); in testSIV()
2271 Level = mapDstLoop(CurLoop); in testSIV()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64LoopIdiomTransform.cpp78 Loop *CurLoop = nullptr; member in __anon815815250111::AArch64LoopIdiomTransform
191 CurLoop = L; in run()
219 BasicBlock *Header = CurLoop->getHeader(); in recognizeByteCompare()
223 if (CurLoop->getNumBackEdges() != 1 || CurLoop->getNumBlocks() != 2) in recognizeByteCompare()
230 auto LoopBlocks = CurLoop->getBlocks(); in recognizeByteCompare()
325 if (!CurLoop->isLoopInvariant(PtrA) || !CurLoop->isLoopInvariant(PtrB) || in recognizeByteCompare()
457 if (CurLoop->getParentLoop()) { in expandFindMismatch()
733 BasicBlock *Header = CurLoop->getHeader(); in transformByteCompare()
806 if (CurLoop->contains(BB)) { in transformByteCompare()
821 if (!CurLoop->isOutermost()) in transformByteCompare()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMustExecute.h66 void computeBlockColors(const Loop *CurLoop);
85 bool allLoopPathsLeadToBlock(const Loop *CurLoop, const BasicBlock *BB,
93 virtual void computeLoopSafetyInfo(const Loop *CurLoop) = 0;
99 const Loop *CurLoop) const = 0;
120 void computeLoopSafetyInfo(const Loop *CurLoop) override;
124 const Loop *CurLoop) const override;
145 void computeLoopSafetyInfo(const Loop *CurLoop) override;
149 const Loop *CurLoop) const override;
153 bool doesNotWriteMemoryBefore(const BasicBlock *BB, const Loop *CurLoop)
158 bool doesNotWriteMemoryBefore(const Instruction &I, const Loop *CurLoop)
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorLoopCarriedReuse.cpp189 HexagonVectorLoopCarriedReuse(Loop *L) : CurLoop(L){}; in HexagonVectorLoopCarriedReuse()
196 Loop *CurLoop; member in __anon9ea2934a0111::HexagonVectorLoopCarriedReuse
245 if (!CurLoop->getLoopPreheader()) in run()
249 if (!CurLoop->getSubLoops().empty()) in run()
253 if (CurLoop->getNumBlocks() != 1) in run()
527 BasicBlock *LoopPH = CurLoop->getLoopPreheader(); in reuseValue()
575 assert(CurLoop->getSubLoops().empty() && in doVLCR()
577 assert((CurLoop->getNumBlocks() == 1) && in doVLCR()
615 if (BB != CurLoop->getHeader()) { in findDepChainFromPHI()
627 PN->getIncomingValueForBlock(CurLoop->getLoopPreheader()); in findDepChainFromPHI()
[all …]
H A DHexagonLoopIdiomRecognition.cpp132 bool isLegalStore(Loop *CurLoop, StoreInst *SI);
632 Loop *CurLoop; member in __anonec300bcc0511::PolynomialMultiplyRecognize
930 if (CurLoop->isLoopInvariant(PV.X)) { in scanSelect()
1778 << *CurLoop << '\n'); in recognize()
1784 BasicBlock *LoopB = CurLoop->getHeader(); in recognize()
1787 if (LoopB != CurLoop->getLoopLatch()) in recognize()
1789 BasicBlock *ExitB = CurLoop->getExitBlock(); in recognize()
2017 if (isLegalStore(CurLoop, SI)) in collectStores()
2115 if (!coverLoop(CurLoop, Insts)) in processCopyingStore()
2149 CurLoop->getUniqueExitBlocks(ExitBlocks); in processCopyingStore()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DGenericLoopInfo.h85 for (const LoopT *CurLoop = ParentLoop; CurLoop; in getLoopDepth() local
86 CurLoop = CurLoop->ParentLoop) in getLoopDepth()
355 const LoopT *CurLoop = static_cast<const LoopT *>(this); in getLoopsInPreorder() local
356 PreOrderLoops.push_back(CurLoop); in getLoopsInPreorder()
357 getInnerLoopsInPreorder(*CurLoop, PreOrderLoops); in getLoopsInPreorder()
362 LoopT *CurLoop = static_cast<LoopT *>(this); in getLoopsInPreorder() local
363 PreOrderLoops.push_back(CurLoop); in getLoopsInPreorder()
364 getInnerLoopsInPreorder(*CurLoop, PreOrderLoops); in getLoopsInPreorder()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLoopUtils.h152 TargetLibraryInfo *, TargetTransformInfo *, Loop *CurLoop,
227 const Loop *CurLoop);
355 Loop *CurLoop, MemorySSAUpdater &MSSAU,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp1036 for (Loop *CurLoop : OrigLoop->getLoopsInPreorder()) { in cloneLoopWithPreheader()
1037 Loop *&NewLoop = LMap[CurLoop]; in cloneLoopWithPreheader()
1042 Loop *OrigParent = CurLoop->getParentLoop(); in cloneLoopWithPreheader()
1052 Loop *CurLoop = LI->getLoopFor(BB); in cloneLoopWithPreheader() local
1053 Loop *&NewLoop = LMap[CurLoop]; in cloneLoopWithPreheader()
1071 Loop *CurLoop = LI->getLoopFor(BB); in cloneLoopWithPreheader() local
1072 if (BB == CurLoop->getHeader()) in cloneLoopWithPreheader()
1073 LMap[CurLoop]->moveToHeader(cast<BasicBlock>(VMap[BB])); in cloneLoopWithPreheader()
H A DLoopUnrollAndJam.cpp774 Loop *CurLoop = LI.getLoopFor((*Blocks.begin())->front().getParent()); in checkDependencies() local
775 unsigned CurLoopDepth = CurLoop->getLoopDepth(); in checkDependencies()
H A DLoopUtils.cpp450 llvm::collectChildrenInLoop(DomTreeNode *N, const Loop *CurLoop) { in collectChildrenInLoop() argument
455 if (CurLoop->contains(BB)) in collectChildrenInLoop()
H A DScalarEvolutionExpander.cpp471 const Loop *CurLoop = I->first; in visitAddExpr() local
485 for (; I != E && I->first == CurLoop; ++I) { in visitAddExpr()
/freebsd-14.2/contrib/llvm-project/llvm/lib/TableGen/
H A DTGParser.h101 ForeachLoop *CurLoop = nullptr; variable
110 : Kind(SK_ForeachLoop), Parent(std::move(Parent)), CurLoop(Loop) {} in TGVarScope()
H A DTGParser.cpp186 if (CurLoop->IterVar) { in getVar()
187 VarInit *IterVar = dyn_cast<VarInit>(CurLoop->IterVar); in getVar()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrProfiling.cpp400 Loop &CurLoop, LoopInfo &LI, BlockFrequencyInfo *BFI) in PGOCounterPromoter() argument
401 : LoopToCandidates(LoopToCands), L(CurLoop), LI(LI), BFI(BFI) { in PGOCounterPromoter()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlan.h82 Loop *CurLoop = nullptr);