Home
last modified time | relevance | path

Searched refs:getSinglePredecessor (Results 1 – 25 of 58) sorted by relevance

123

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSpeculativeExecution.cpp184 if (Succ0.getSinglePredecessor() != nullptr && in runOnBasicBlock()
190 if (Succ1.getSinglePredecessor() != nullptr && in runOnBasicBlock()
197 if (Succ0.getSinglePredecessor() != nullptr && in runOnBasicBlock()
198 Succ1.getSinglePredecessor() != nullptr && in runOnBasicBlock()
H A DMergedLoadStoreMotion.cpp150 if (!Succ0->getSinglePredecessor()) in isDiamondHead()
152 if (!Succ1->getSinglePredecessor()) in isDiamondHead()
H A DJumpThreading.cpp250 auto *SinglePredBB = PredBB->getSinglePredecessor(); in updatePredecessorProfileMetadata()
1262 BasicBlock *CurrentPred = BB->getSinglePredecessor(); in processImpliedCondition()
1291 CurrentPred = CurrentBB->getSinglePredecessor(); in processImpliedCondition()
1316 if (LoadBB->getSinglePredecessor()) in simplifyPartiallyRedundantLoad()
1407 SinglePredBB = SinglePredBB->getSinglePredecessor(); in simplifyPartiallyRedundantLoad()
1589 BasicBlock *PredBB = BB->getSinglePredecessor(); in evaluateOnPredecessorEdge()
1977 BasicBlock *SinglePred = BB->getSinglePredecessor(); in maybeMergeBasicBlockIntoOnlyPred()
2146 BasicBlock *PredBB = BB->getSinglePredecessor(); in maybethreadThroughTwoBasicBlocks()
2159 if (PredBB->getSinglePredecessor()) in maybethreadThroughTwoBasicBlocks()
2988 auto *Parent = Pred1->getSinglePredecessor(); in processGuards()
[all …]
H A DCallSiteSplitting.cpp159 while (To != StopAt && !Visited.count(From->getSinglePredecessor()) && in recordConditions()
160 (From = From->getSinglePredecessor())) { in recordConditions()
H A DGVN.cpp1296 while (TmpBB->getSinglePredecessor()) { in PerformLoadPRE()
1297 TmpBB = TmpBB->getSinglePredecessor(); in PerformLoadPRE()
1435 Cur, Cur->getSinglePredecessor(), *DT, NewInsts); in PerformLoadPRE()
1440 Cur = Cur->getSinglePredecessor(); in PerformLoadPRE()
2110 const BasicBlock *Pred = E.getEnd()->getSinglePredecessor(); in isOnlyReachableViaThisEdge()
3015 if (!DeadRoot->getSinglePredecessor()) in processFoldableCondBr()
H A DLoopDistribute.cpp445 BasicBlock *Pred = OrigPH->getSinglePredecessor(); in cloneLoops()
808 if (!PH->getSinglePredecessor() || &*PH->begin() != PH->getTerminator()) in processLoop()
H A DLowerExpectIntrinsic.cpp193 BB = BB->getSinglePredecessor(); in handlePhiDef()
H A DLoopPredication.cpp981 if (BasicBlock *Pred = BB->getSinglePredecessor()) in FindWidenableTerminatorAboveLoop()
989 if (BasicBlock *Pred = BB->getSinglePredecessor()) { in FindWidenableTerminatorAboveLoop()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMatrixUtils.cpp96 ColumnLoopHeader = ColBody->getSinglePredecessor(); in CreateTiledLoops()
97 RowLoopHeader = RowBody->getSinglePredecessor(); in CreateTiledLoops()
98 InnerLoopHeader = InnerBody->getSinglePredecessor(); in CreateTiledLoops()
H A DFlattenCFG.cpp157 BasicBlock *PP = Pred->getSinglePredecessor(); in FlattenParallelAndOr()
253 CurrBlock = CurrBlock->getSinglePredecessor()) { in FlattenParallelAndOr()
H A DDemoteRegToStack.cpp47 if (!II->getNormalDest()->getSinglePredecessor()) { in DemoteRegToStack()
H A DSimplifyCFG.cpp3335 for (auto &I : *QFB->getSinglePredecessor()) in mergeConditionalStoreToAddress()
3628 if (BB->getSinglePredecessor()) { in SimplifyCondBranchToCondBranch()
4040 BasicBlock *Pred = BB->getSinglePredecessor(); in tryToSimplifyUncondBranchWithICmpInIt()
4964 if (!BB->getSinglePredecessor()) in FindPHIForConditionForwarding()
6112 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in simplifySwitch()
6350 BasicBlock *PPred = P->getSinglePredecessor(); in allPredecessorsComeFromSameSource()
6368 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in simplifyCondBranch()
6413 if (BI->getSuccessor(0)->getSinglePredecessor()) { in simplifyCondBranch()
6414 if (BI->getSuccessor(1)->getSinglePredecessor()) { in simplifyCondBranch()
6427 } else if (BI->getSuccessor(1)->getSinglePredecessor()) { in simplifyCondBranch()
[all …]
H A DLoopRotationUtils.cpp372 assert(NewHeader->getSinglePredecessor() && in rotateLoop()
779 BasicBlock *LastExit = Latch->getSinglePredecessor(); in simplifyLoopLatch()
H A DBasicBlockUtils.cpp515 if (BasicBlock *SP = Succ->getSinglePredecessor()) { in SplitEdge()
1507 if (!Pred2->getSinglePredecessor()) in GetIfCondition()
1532 BasicBlock *CommonPred = Pred1->getSinglePredecessor(); in GetIfCondition()
1533 if (CommonPred == nullptr || CommonPred != Pred2->getSinglePredecessor()) in GetIfCondition()
H A DPredicateInfo.cpp478 if (!Succ->getSinglePredecessor()) in processBranch()
508 if (!TargetBlock->getSinglePredecessor()) in processSwitch()
H A DCloneFunction.cpp723 if (I != Begin && (pred_empty(&*I) || I->getSinglePredecessor() == &*I)) { in CloneAndPruneIntoFromInst()
736 if (!Dest->getSinglePredecessor()) { in CloneAndPruneIntoFromInst()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DBasicBlock.h243 const BasicBlock *getSinglePredecessor() const;
244 BasicBlock *getSinglePredecessor() { in getSinglePredecessor() function
246 static_cast<const BasicBlock *>(this)->getSinglePredecessor()); in getSinglePredecessor()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DHardwareLoops.cpp344 if (!Preheader->getSinglePredecessor()) in CanGenerateTest()
347 BasicBlock *Pred = Preheader->getSinglePredecessor(); in CanGenerateTest()
402 if (UseLoopGuard && BB->getSinglePredecessor() && in InitLoopCount()
404 BasicBlock *Predecessor = BB->getSinglePredecessor(); in InitLoopCount()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp170 BasicBlock *B2 = BB.getSinglePredecessor(); in serializeICMPCrossBB()
174 BasicBlock *B1 = B2->getSinglePredecessor(); in serializeICMPCrossBB()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXIntrinsics.cpp172 BasicBlock *ColLoopHeader = ColBody->getSinglePredecessor(); in createTileLoadStoreLoops()
173 BasicBlock *RowLoopHeader = RowBody->getSinglePredecessor(); in createTileLoadStoreLoops()
294 BasicBlock *ColLoopHeader = ColBody->getSinglePredecessor(); in createTileDPLoops()
295 BasicBlock *RowLoopHeader = RowBody->getSinglePredecessor(); in createTileDPLoops()
296 BasicBlock *InnerLoopHeader = InnerBody->getSinglePredecessor(); in createTileDPLoops()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp170 if (!Preheader->getSinglePredecessor()) in runOnLoop()
172 Setup = FindLoopIterations(Preheader->getSinglePredecessor()); in runOnLoop()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp80 if (!DestBB->getSinglePredecessor()) { in insertAfterInvokes()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DBasicBlock.cpp264 const BasicBlock *BasicBlock::getSinglePredecessor() const { in getSinglePredecessor() function in BasicBlock
418 assert((!isa<PHINode>(*I) || getSinglePredecessor()) && in splitBasicBlockBefore()
H A DDominators.cpp211 if (End->getSinglePredecessor()) in dominates()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp912 auto *CaseBB = IP.getBlock()->getSinglePredecessor(); in createSections()
913 auto *CondBB = CaseBB->getSinglePredecessor()->getSinglePredecessor(); in createSections()
942 ->getSinglePredecessor() in createSections()
1010 auto *CondBB = CaseBB->getSinglePredecessor()->getSinglePredecessor(); in createSection()
2769 assert(Cond->getSinglePredecessor() == Header && in assertOK()
2782 assert(Body->getSinglePredecessor() == Cond && in assertOK()
2792 assert(Latch->getSinglePredecessor() != nullptr); in assertOK()
2802 assert(After->getSinglePredecessor() == Exit && in assertOK()

123