Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/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.cpp146 if (!Succ0->getSinglePredecessor()) in isDiamondHead()
148 if (!Succ1->getSinglePredecessor()) in isDiamondHead()
H A DJumpThreading.cpp246 auto *SinglePredBB = PredBB->getSinglePredecessor(); in updatePredecessorProfileMetadata()
1263 BasicBlock *CurrentPred = BB->getSinglePredecessor(); in processImpliedCondition()
1304 CurrentPred = CurrentBB->getSinglePredecessor(); in processImpliedCondition()
1329 if (LoadBB->getSinglePredecessor()) in simplifyPartiallyRedundantLoad()
1419 SinglePredBB = SinglePredBB->getSinglePredecessor(); in simplifyPartiallyRedundantLoad()
1597 BasicBlock *PredBB = BB->getSinglePredecessor(); in evaluateOnPredecessorEdge()
1982 BasicBlock *SinglePred = BB->getSinglePredecessor(); in maybeMergeBasicBlockIntoOnlyPred()
2178 BasicBlock *PredBB = BB->getSinglePredecessor(); in maybethreadThroughTwoBasicBlocks()
2191 if (PredBB->getSinglePredecessor()) in maybethreadThroughTwoBasicBlocks()
3028 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.cpp1118 for (BasicBlock *BB = FromBB; BB; BB = BB->getSinglePredecessor()) in findDominatingValue()
1427 while (TmpBB->getSinglePredecessor()) { in PerformLoadPRE()
1428 TmpBB = TmpBB->getSinglePredecessor(); in PerformLoadPRE()
1559 Cur, Cur->getSinglePredecessor(), *DT, NewInsts); in PerformLoadPRE()
1564 Cur = Cur->getSinglePredecessor(); in PerformLoadPRE()
2235 const BasicBlock *Pred = E.getEnd()->getSinglePredecessor(); in isOnlyReachableViaThisEdge()
3128 if (!DeadRoot->getSinglePredecessor()) in processFoldableCondBr()
H A DLoopDistribute.cpp443 BasicBlock *Pred = OrigPH->getSinglePredecessor(); in cloneLoops()
805 if (!PH->getSinglePredecessor() || &*PH->begin() != PH->getTerminator()) in processLoop()
H A DLowerExpectIntrinsic.cpp207 BB = BB->getSinglePredecessor(); in handlePhiDef()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DMatrixUtils.cpp96 ColumnLoop.Header = ColBody->getSinglePredecessor(); in CreateTiledLoops()
97 RowLoop.Header = RowBody->getSinglePredecessor(); in CreateTiledLoops()
98 KLoop.Header = InnerBody->getSinglePredecessor(); in CreateTiledLoops()
H A DFlattenCFG.cpp155 BasicBlock *PP = Pred->getSinglePredecessor(); in FlattenParallelAndOr()
251 CurrBlock = CurrBlock->getSinglePredecessor()) { in FlattenParallelAndOr()
H A DDemoteRegToStack.cpp46 if (!II->getNormalDest()->getSinglePredecessor()) { in DemoteRegToStack()
H A DLoopRotationUtils.cpp374 assert(NewHeader->getSinglePredecessor() && in rotateLoop()
780 BasicBlock *LastExit = Latch->getSinglePredecessor(); in simplifyLoopLatch()
H A DSimplifyCFG.cpp3929 for (auto &I : *QFB->getSinglePredecessor()) in mergeConditionalStoreToAddress()
3993 BasicBlock *TruePred = QTB ? QTB : QFB->getSinglePredecessor(); in mergeConditionalStoreToAddress()
4003 Value *PCond = cast<BranchInst>(PFB->getSinglePredecessor()->getTerminator()) in mergeConditionalStoreToAddress()
4005 Value *QCond = cast<BranchInst>(QFB->getSinglePredecessor()->getTerminator()) in mergeConditionalStoreToAddress()
4109 return BB->getSinglePredecessor() == P && BB->getSingleSuccessor() == S; in mergeConditionalStores()
4165 IfTrueBB != BI->getParent() || !BI->getParent()->getSinglePredecessor()) in tryWidenCondBranchToCondBranch()
4226 if (BB->getSinglePredecessor()) { in SimplifyCondBranchToCondBranch()
4589 BasicBlock *Pred = BB->getSinglePredecessor(); in tryToSimplifyUncondBranchWithICmpInIt()
5065 if (UnwindDest->getSinglePredecessor() != RI->getParent()) in mergeCleanupPad()
5518 if (!BB->getSinglePredecessor()) in FindPHIForConditionForwarding()
[all …]
H A DBasicBlockUtils.cpp637 if (BasicBlock *SP = Succ->getSinglePredecessor()) { in SplitEdge()
1650 if (!Pred2->getSinglePredecessor()) in GetIfCondition()
1675 BasicBlock *CommonPred = Pred1->getSinglePredecessor(); in GetIfCondition()
1676 if (CommonPred == nullptr || CommonPred != Pred2->getSinglePredecessor()) in GetIfCondition()
H A DPredicateInfo.cpp470 if (!Succ->getSinglePredecessor()) in processBranch()
500 if (!TargetBlock->getSinglePredecessor()) in processSwitch()
H A DLibCallsShrinkWrap.cpp501 LLVM_DEBUG(dbgs() << *CallBB->getSinglePredecessor() << *CallBB in shrinkWrapCI()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DHardwareLoops.cpp341 if (!Preheader->getSinglePredecessor()) in CanGenerateTest()
344 BasicBlock *Pred = Preheader->getSinglePredecessor(); in CanGenerateTest()
405 if (UseLoopGuard && BB->getSinglePredecessor() && in InitLoopCount()
407 BasicBlock *Predecessor = BB->getSinglePredecessor(); in InitLoopCount()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DBasicBlock.h261 const BasicBlock *getSinglePredecessor() const;
262 BasicBlock *getSinglePredecessor() { in getSinglePredecessor() function
264 static_cast<const BasicBlock *>(this)->getSinglePredecessor()); in getSinglePredecessor()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86LowerAMXIntrinsics.cpp173 BasicBlock *ColLoopHeader = ColBody->getSinglePredecessor(); in createTileLoadStoreLoops()
174 BasicBlock *RowLoopHeader = RowBody->getSinglePredecessor(); in createTileLoadStoreLoops()
295 BasicBlock *ColLoopHeader = ColBody->getSinglePredecessor(); in createTileDPLoops()
296 BasicBlock *RowLoopHeader = RowBody->getSinglePredecessor(); in createTileDPLoops()
297 BasicBlock *InnerLoopHeader = InnerBody->getSinglePredecessor(); in createTileDPLoops()
/openbsd-src/gnu/llvm/llvm/examples/IRTransforms/
H A DSimplifyCFG.cpp269 BasicBlock *Pred = BB.getSinglePredecessor(); in mergeIntoSinglePredecessor_v1()
311 BasicBlock *Pred = BB.getSinglePredecessor(); in mergeIntoSinglePredecessor_v2()
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp170 if (!Preheader->getSinglePredecessor()) in runOnLoop()
172 Setup = FindLoopIterations(Preheader->getSinglePredecessor()); in runOnLoop()
/openbsd-src/gnu/llvm/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp230 BasicBlock *B2 = BB.getSinglePredecessor(); in serializeICMPCrossBB()
234 BasicBlock *B1 = B2->getSinglePredecessor(); in serializeICMPCrossBB()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp58 if (!DestBB->getSinglePredecessor()) { in insertAfterInvokes()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DBasicBlock.cpp284 const BasicBlock *BasicBlock::getSinglePredecessor() const { in getSinglePredecessor() function in BasicBlock
438 assert((!isa<PHINode>(*I) || getSinglePredecessor()) && in splitBasicBlockBefore()
H A DDominators.cpp218 if (End->getSinglePredecessor()) in dominates()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp320 dyn_cast_or_null<VPBasicBlock>(VPBB->getSinglePredecessor()); in mergeBlocksIntoPredecessors()
326 VPBasicBlock *PredVPBB = cast<VPBasicBlock>(VPBB->getSinglePredecessor()); in mergeBlocksIntoPredecessors()

123