Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/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()
1263 BasicBlock *CurrentPred = BB->getSinglePredecessor(); in processImpliedCondition()
1292 CurrentPred = CurrentBB->getSinglePredecessor(); in processImpliedCondition()
1317 if (LoadBB->getSinglePredecessor()) in simplifyPartiallyRedundantLoad()
1408 SinglePredBB = SinglePredBB->getSinglePredecessor(); in simplifyPartiallyRedundantLoad()
1590 BasicBlock *PredBB = BB->getSinglePredecessor(); in evaluateOnPredecessorEdge()
1978 BasicBlock *SinglePred = BB->getSinglePredecessor(); in maybeMergeBasicBlockIntoOnlyPred()
2147 BasicBlock *PredBB = BB->getSinglePredecessor(); in maybethreadThroughTwoBasicBlocks()
2160 if (PredBB->getSinglePredecessor()) in maybethreadThroughTwoBasicBlocks()
2989 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.cpp1297 while (TmpBB->getSinglePredecessor()) { in PerformLoadPRE()
1298 TmpBB = TmpBB->getSinglePredecessor(); in PerformLoadPRE()
1436 Cur, Cur->getSinglePredecessor(), *DT, NewInsts); in PerformLoadPRE()
1441 Cur = Cur->getSinglePredecessor(); in PerformLoadPRE()
2111 const BasicBlock *Pred = E.getEnd()->getSinglePredecessor(); in isOnlyReachableViaThisEdge()
3016 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()
/netbsd-src/external/apache2/llvm/dist/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 DLoopRotationUtils.cpp372 assert(NewHeader->getSinglePredecessor() && in rotateLoop()
778 BasicBlock *LastExit = Latch->getSinglePredecessor(); in simplifyLoopLatch()
H A DSimplifyCFG.cpp3388 for (auto &I : *QFB->getSinglePredecessor()) in mergeConditionalStoreToAddress()
3451 BasicBlock *TruePred = QTB ? QTB : QFB->getSinglePredecessor(); in mergeConditionalStoreToAddress()
3461 Value *PCond = cast<BranchInst>(PFB->getSinglePredecessor()->getTerminator()) in mergeConditionalStoreToAddress()
3463 Value *QCond = cast<BranchInst>(QFB->getSinglePredecessor()->getTerminator()) in mergeConditionalStoreToAddress()
3570 return BB->getSinglePredecessor() == P && BB->getSingleSuccessor() == S; in mergeConditionalStores()
3626 IfTrueBB != BI->getParent() || !BI->getParent()->getSinglePredecessor()) in tryWidenCondBranchToCondBranch()
3681 if (BB->getSinglePredecessor()) { in SimplifyCondBranchToCondBranch()
4093 BasicBlock *Pred = BB->getSinglePredecessor(); in tryToSimplifyUncondBranchWithICmpInIt()
4566 if (UnwindDest->getSinglePredecessor() != RI->getParent()) in mergeCleanupPad()
5089 if (!BB->getSinglePredecessor()) in FindPHIForConditionForwarding()
[all …]
H A DBasicBlockUtils.cpp517 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.cpp476 if (!Succ->getSinglePredecessor()) in processBranch()
506 if (!TargetBlock->getSinglePredecessor()) in processSwitch()
H A DCloneFunction.cpp720 if (I != Begin && (pred_empty(&*I) || I->getSinglePredecessor() == &*I)) { in CloneAndPruneIntoFromInst()
733 if (!Dest->getSinglePredecessor()) { in CloneAndPruneIntoFromInst()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DHardwareLoops.cpp344 if (!Preheader->getSinglePredecessor()) in CanGenerateTest()
347 BasicBlock *Pred = Preheader->getSinglePredecessor(); in CanGenerateTest()
397 if (UseLoopGuard && BB->getSinglePredecessor() && in InitLoopCount()
399 BasicBlock *Predecessor = BB->getSinglePredecessor(); in InitLoopCount()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp170 BasicBlock *B2 = BB.getSinglePredecessor(); in serializeICMPCrossBB()
174 BasicBlock *B1 = B2->getSinglePredecessor(); in serializeICMPCrossBB()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/IRTransforms/
H A DSimplifyCFG.cpp271 BasicBlock *Pred = BB.getSinglePredecessor(); in mergeIntoSinglePredecessor_v1()
313 BasicBlock *Pred = BB.getSinglePredecessor(); in mergeIntoSinglePredecessor_v2()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp170 if (!Preheader->getSinglePredecessor()) in runOnLoop()
172 Setup = FindLoopIterations(Preheader->getSinglePredecessor()); in runOnLoop()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp80 if (!DestBB->getSinglePredecessor()) { in insertAfterInvokes()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp899 auto *CaseBB = IP.getBlock()->getSinglePredecessor(); in createSections()
900 auto *CondBB = CaseBB->getSinglePredecessor()->getSinglePredecessor(); in createSections()
929 ->getSinglePredecessor() in createSections()
997 auto *CondBB = CaseBB->getSinglePredecessor()->getSinglePredecessor(); in createSection()
2645 assert(Cond->getSinglePredecessor() == Header && in assertOK()
2658 assert(Body->getSinglePredecessor() == Cond && in assertOK()
2668 assert(Latch->getSinglePredecessor() != nullptr); in assertOK()
2678 assert(After->getSinglePredecessor() == Exit && in assertOK()

123