Home
last modified time | relevance | path

Searched refs:getLoopPreheader (Results 1 – 25 of 64) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopSink.cpp161 BFI.getBlockFreq(L.getLoopPreheader())) in findBBsToSinkInto()
195 if (L.getLoopPreheader() == PhiBB) in sinkInstruction()
286 BasicBlock *Preheader = L.getLoopPreheader(); in sinkLoopInvariantInstructions()
311 if (BFI.getBlockFreq(B) < BFI.getBlockFreq(L.getLoopPreheader())) { in sinkLoopInvariantInstructions()
368 BasicBlock *Preheader = L.getLoopPreheader(); in run()
H A DLoopIdiomRecognize.cpp294 if (!L->getLoopPreheader()) in runOnLoop()
1024 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in processLoopStridedStore()
1258 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in processLoopStoreOfLoopLoad()
1636 InitX = VarPhi->getIncomingValueForBlock(CurLoop->getLoopPreheader()); in detectShiftUntilLessThanIdiom()
1786 Value *T = matchCondition(PreCondBr, CurLoop->getLoopPreheader()); in detectPopcountIdiom()
1859 InitX = PhiX->getIncomingValueForBlock(CurLoop->getLoopPreheader()); in detectShiftUntilZeroIdiom()
1948 BasicBlock *PH = CurLoop->getLoopPreheader(); in insertFFSIfProfitable()
2036 BasicBlock *PH = CurLoop->getLoopPreheader(); in recognizeShiftUntilLessThan()
2094 BasicBlock *PH = CurLoop->getLoopPreheader(); in recognizePopcount()
2275 BasicBlock *PreHead = CurLoop->getLoopPreheader(); in transformLoopToPopcount()
[all …]
H A DLoopInterchange.cpp549 BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader(); in tightlyNested()
603 BasicBlock *InnerLoopPreheader = InnerLoop->getLoopPreheader(); in isLoopStructureUnderstood()
1289 BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader(); in transform()
1370 BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader(); in transform()
1544 BasicBlock *OuterLoopPreHeader = OuterLoop->getLoopPreheader(); in adjustLoopBranches()
1545 BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader(); in adjustLoopBranches()
1704 BasicBlock *OuterLoopPreHeader = OuterLoop->getLoopPreheader(); in adjustLoopLinks()
1705 BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader(); in adjustLoopLinks()
H A DLoopDistribute.cpp436 BasicBlock *OrigPH = L->getLoopPreheader(); in cloneLoops()
466 TopPH = NewLoop->getLoopPreheader(); in cloneLoops()
481 Next->getDistributedLoop()->getLoopPreheader(), in cloneLoops()
674 BasicBlock *PH = L->getLoopPreheader(); in processLoop()
H A DIndVarSimplify.cpp488 auto *LoopPreheader = L->getLoopPreheader(); in rewriteFirstIterationLoopExitValues()
1098 BasicBlock *Preheader = L->getLoopPreheader(); in sinkUnusedInvariants()
1211 auto *LoopPreheader = L->getLoopPreheader(); in replaceLoopPHINodesWithPreheaderValues()
1250 BasicBlock *Preheader = L->getLoopPreheader(); in createInvariantCond()
1533 L->getLoopPreheader()->getTerminator()->getIterator()); in canonicalizeExitCondition()
1858 Rewriter.setInsertPoint(L->getLoopPreheader()->getTerminator()); in predicateLoopExits()
1859 IRBuilder<> B(L->getLoopPreheader()->getTerminator()); in predicateLoopExits()
1974 BasicBlock *PreHeader = L->getLoopPreheader(); in run()
H A DLICM.cpp446 BasicBlock *Preheader = L->getLoopPreheader(); in runOnLoop()
766 return CurLoop->getLoopPreheader(); in getOrCreateHoistedBlock()
780 BasicBlock *InitialPreheader = CurLoop->getLoopPreheader(); in getOrCreateHoistedBlock()
862 assert(CurLoop->getLoopPreheader() && in getOrCreateHoistedBlock()
899 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in hoistRegion()
1990 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in promoteLoopAccessesToScalars()
2458 auto *Preheader = L.getLoopPreheader(); in hoistMinMax()
2520 BasicBlock *Preheader = L.getLoopPreheader(); in hoistGEP()
2569 auto *Preheader = L.getLoopPreheader(); in hoistAdd()
2628 auto *Preheader = L.getLoopPreheader(); in hoistSub()
[all …]
H A DLoopFlatten.cpp500 InnerPHI.getIncomingValueForBlock(FI.InnerLoop->getLoopPreheader()); in checkPHIs()
658 FI.OuterLoop->getLoopPreheader()->getTerminator())); in checkOverflow()
765 FI.OuterLoop->getLoopPreheader()->getTerminator()->getIterator()); in DoFlattenLoopPair()
968 BasicBlock *CheckBlock = FI.OuterLoop->getLoopPreheader(); in FlattenLoopPair()
H A DSimpleLoopUnswitch.cpp318 MemPhi->getIncomingValueForBlock(L.getLoopPreheader()); in buildPartialInvariantUnswitchConditionalBranch()
598 BasicBlock *OldPH = L.getLoopPreheader(); in unswitchTrivialBranch()
863 BasicBlock *OldPH = L.getLoopPreheader(); in unswitchTrivialSwitch()
1427 auto *OrigPH = OrigL.getLoopPreheader(); in buildClonedLoops()
1799 auto *PH = L.getLoopPreheader(); in recomputeLoopBlockSet()
1848 auto *InnerPH = InnerL->getLoopPreheader(); in recomputeLoopBlockSet()
1910 auto *PH = L.getLoopPreheader(); in rebuildLoopAfterUnswitch()
2085 if (auto *NewParentL = LI.getLoopFor(HoistedL->getLoopPreheader())) in rebuildLoopAfterUnswitch()
2309 BasicBlock *SplitBB = L.getLoopPreheader(); in unswitchNontrivialInvariants()
3085 BasicBlock *Preheader = L.getLoopPreheader(); in injectPendingInvariantConditions()
[all …]
H A DLoopDeletion.cpp150 auto *Preheader = L->getLoopPreheader(); in isLoopNeverExecuted()
445 BasicBlock *Preheader = L->getLoopPreheader(); in deleteLoopIfDead()
H A DLoopBoundSplit.cpp352 BasicBlock *PreHeader = L.getLoopPreheader(); in splitLoopBound()
358 BasicBlock *PostLoopPreHeader = PostLoop->getLoopPreheader(); in splitLoopBound()
H A DLoopSimplifyCFG.cpp351 BasicBlock *Preheader = L.getLoopPreheader(); in handleDeadExits()
383 assert(L.getLoopPreheader() == NewPreheader && "Malformed CFG?"); in handleDeadExits()
H A DTLSVariableHoist.cpp168 BasicBlock *PreHeader = L->getLoopPreheader(); in getNearestLoopDomInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp143 BasicBlock *Preheader = L->getLoopPreheader(); in runOnLoop()
377 IRBuilder<> Builder(L->getLoopPreheader()->getTerminator()); in InsertVCTPIntrinsic()
386 Processed->addIncoming(Start, L->getLoopPreheader()); in InsertVCTPIntrinsic()
441 Instruction *Ins = L->getLoopPreheader()->getTerminator(); in TryConvertActiveLaneMask()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DHardwareLoops.cpp361 BasicBlock *Preheader = L->getLoopPreheader(); in TryConvertLoop()
402 BasicBlock *Preheader = L->getLoopPreheader(); in CanGenerateTest()
467 BasicBlock *BB = L->getLoopPreheader(); in InitLoopCount()
496 BeginBB = UseLoopGuard ? BB : L->getLoopPreheader(); in InitLoopCount()
528 if (LoopGuard->getSuccessor(0) != L->getLoopPreheader()) in InsertIterationSetup()
580 BasicBlock *Preheader = L->getLoopPreheader(); in InsertPHICounter()
H A DMachineLoopInfo.cpp131 if (MachineBasicBlock *PHeadMBB = getLoopPreheader()) in getStartLoc()
148 if (MachineBasicBlock *PB = L->getLoopPreheader()) in findLoopPreheader()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopVersioning.cpp61 BasicBlock *RuntimeCheckBB = VersionedLoop->getLoopPreheader(); in versionLoop()
111 Builder.CreateCondBr(RuntimeCheck, NonVersionedLoop->getLoopPreheader(), in versionLoop()
112 VersionedLoop->getLoopPreheader()); in versionLoop()
H A DLoopUnrollAndJam.cpp85 BasicBlock *SubLoopPreHeader = SubLoop->getLoopPreheader(); in partitionLoopBlocks()
293 BasicBlock *Preheader = L->getLoopPreheader(); in UnrollAndJamLoop()
322 ForeBlocksLast.push_back(SubLoop->getLoopPreheader()); in UnrollAndJamLoop()
H A DScalarEvolutionExpander.cpp302 BasicBlock *Preheader = L->getLoopPreheader(); in InsertBinop()
388 BasicBlock *Preheader = L->getLoopPreheader(); in expandAddToGEP()
841 (IVOper = getIVIncOperand(IVOper, L->getLoopPreheader()->getTerminator(), in isExpandedAddRecExprPHI()
1040 assert(L->getLoopPreheader() && in getAddRecExprPHILiterally()
1043 expand(Normalized->getStart(), L->getLoopPreheader()->getTerminator()); in getAddRecExprPHILiterally()
1493 if (BasicBlock *Preheader = L->getLoopPreheader()) { in expand()
2332 if (!AR->getLoop()->getLoopPreheader() && in follow()
H A DCanonicalizeFreezeInLoops.cpp133 auto *PH = L->getLoopPreheader(); in InsertFreezeAndForgetFromSCEV()
H A DLoopUnroll.cpp205 BasicBlock *PreHeader = L->getLoopPreheader(); in isEpilogProfitable()
466 if (!L->getLoopPreheader()) { in UnrollLoop()
493 BasicBlock *Preheader = L->getLoopPreheader(); in UnrollLoop()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopNestAnalysis.cpp163 const BasicBlock *InnerLoopPreHeader = InnerLoop.getLoopPreheader(); in analyzeLoopNestForPerfectNest()
227 const BasicBlock *InnerLoopPreHeader = InnerLoop.getLoopPreheader(); in getInterveningInstructions()
328 const BasicBlock *InnerLoopPreHeader = InnerLoop.getLoopPreheader(); in checkLoopsStructure()
H A DLoopInfo.cpp94 BasicBlock *Preheader = getLoopPreheader(); in makeLoopInvariant()
372 BasicBlock *Preheader = getLoopPreheader(); in getLoopGuardBranch()
483 return getLoopPreheader() && getLoopLatch() && hasDedicatedExits(); in isLoopSimplifyForm()
655 if (BasicBlock *PHeadBB = getLoopPreheader()) in getLocRange()
1004 auto *PreHeader = L.getLoopPreheader(); in printLoop()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorLoopCarriedReuse.cpp245 if (!CurLoop->getLoopPreheader()) in run()
527 BasicBlock *LoopPH = CurLoop->getLoopPreheader(); in reuseValue()
627 PN->getIncomingValueForBlock(CurLoop->getLoopPreheader()); in findDepChainFromPHI()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanHCFGBuilder.cpp233 BasicBlock *PH = TheLoop->getLoopPreheader(); in isExternalDef()
338 BasicBlock *ThePreheaderBB = TheLoop->getLoopPreheader(); in buildPlainCFG()
H A DLoopIdiomVectorize.cpp187 if (!L->getLoopPreheader()) in run()
592 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in expandFindMismatch()
846 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in transformByteCompare()

123