Home
last modified time | relevance | path

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

123

/freebsd/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.cpp147 if (!Succ0->getSinglePredecessor()) in isDiamondHead()
149 if (!Succ1->getSinglePredecessor()) in isDiamondHead()
H A DJumpThreading.cpp176 auto *SinglePredBB = PredBB->getSinglePredecessor(); in updatePredecessorProfileMetadata()
1161 BasicBlock *CurrentPred = BB->getSinglePredecessor(); in processImpliedCondition()
1202 CurrentPred = CurrentBB->getSinglePredecessor(); in processImpliedCondition()
1227 if (LoadBB->getSinglePredecessor()) in simplifyPartiallyRedundantLoad()
1323 SinglePredBB = SinglePredBB->getSinglePredecessor(); in simplifyPartiallyRedundantLoad()
1509 BasicBlock *PredBB = BB->getSinglePredecessor(); in evaluateOnPredecessorEdge()
1900 BasicBlock *SinglePred = BB->getSinglePredecessor(); in maybeMergeBasicBlockIntoOnlyPred()
2168 BasicBlock *PredBB = BB->getSinglePredecessor(); in maybethreadThroughTwoBasicBlocks()
2181 if (PredBB->getSinglePredecessor()) in maybethreadThroughTwoBasicBlocks()
3074 auto *Parent = Pred1->getSinglePredecessor(); in processGuards()
[all …]
H A DCallSiteSplitting.cpp157 while (To != StopAt && !Visited.count(From->getSinglePredecessor()) && in recordConditions()
158 (From = From->getSinglePredecessor())) { in recordConditions()
H A DLoopDistribute.cpp439 BasicBlock *Pred = OrigPH->getSinglePredecessor(); in cloneLoops()
805 if (!PH->getSinglePredecessor() || &*PH->begin() != PH->getTerminator()) in processLoop()
H A DGVN.cpp1311 for (BasicBlock *BB = FromBB; BB; BB = BB->getSinglePredecessor()) in findDominatingValue()
1538 if (!SuccBB->getSinglePredecessor()) in findLoadToHoistIntoPred()
1687 while (TmpBB->getSinglePredecessor()) { in PerformLoadPRE()
1688 TmpBB = TmpBB->getSinglePredecessor(); in PerformLoadPRE()
1837 LoadPtr = Address.translateWithInsertion(Cur, Cur->getSinglePredecessor(), in PerformLoadPRE()
1843 Cur = Cur->getSinglePredecessor(); in PerformLoadPRE()
2481 const BasicBlock *Pred = E.getEnd()->getSinglePredecessor(); in isOnlyReachableViaThisEdge()
3347 if (!DeadRoot->getSinglePredecessor()) in processFoldableCondBr()
H A DLowerExpectIntrinsic.cpp201 BB = BB->getSinglePredecessor(); in handlePhiDef()
/freebsd/contrib/llvm-project/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 DDemoteRegToStack.cpp47 if (!II->getNormalDest()->getSinglePredecessor()) { in DemoteRegToStack()
57 if (!Succ->getSinglePredecessor()) { in DemoteRegToStack()
H A DFlattenCFG.cpp155 BasicBlock *PP = Pred->getSinglePredecessor(); in FlattenParallelAndOr()
251 CurrBlock = CurrBlock->getSinglePredecessor()) { in FlattenParallelAndOr()
H A DSimplifyCFG.cpp1832 if (Succ->hasAddressTaken() || !Succ->getSinglePredecessor()) in hoistCommonCodeFromSuccessors()
4253 for (auto &I : *QFB->getSinglePredecessor()) in mergeConditionalStoreToAddress()
4317 BasicBlock *TruePred = QTB ? QTB : QFB->getSinglePredecessor(); in mergeConditionalStoreToAddress()
4327 Value *PCond = cast<BranchInst>(PFB->getSinglePredecessor()->getTerminator()) in mergeConditionalStoreToAddress()
4329 Value *QCond = cast<BranchInst>(QFB->getSinglePredecessor()->getTerminator()) in mergeConditionalStoreToAddress()
4437 return BB->getSinglePredecessor() == P && BB->getSingleSuccessor() == S; in mergeConditionalStores()
4493 !BI->getParent()->getSinglePredecessor()) in tryWidenCondBranchToCondBranch()
4554 if (BB->getSinglePredecessor()) { in SimplifyCondBranchToCondBranch()
4933 BasicBlock *Pred = BB->getSinglePredecessor(); in tryToSimplifyUncondBranchWithICmpInIt()
5408 if (UnwindDest->getSinglePredecessor() != RI->getParent()) in mergeCleanupPad()
[all …]
H A DLoopRotationUtils.cpp531 assert(NewHeader->getSinglePredecessor() && in rotateLoop()
1000 BasicBlock *LastExit = Latch->getSinglePredecessor(); in simplifyLoopLatch()
H A DBasicBlockUtils.cpp643 if (BasicBlock *SP = Succ->getSinglePredecessor()) { in SplitEdge()
1711 if (!Pred2->getSinglePredecessor()) in GetIfCondition()
1736 BasicBlock *CommonPred = Pred1->getSinglePredecessor(); in GetIfCondition()
1737 if (CommonPred == nullptr || CommonPred != Pred2->getSinglePredecessor()) in GetIfCondition()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DHardwareLoops.cpp402 if (!Preheader->getSinglePredecessor()) in CanGenerateTest()
405 BasicBlock *Pred = Preheader->getSinglePredecessor(); in CanGenerateTest()
467 if (UseLoopGuard && BB->getSinglePredecessor() && in InitLoopCount()
469 BasicBlock *Predecessor = BB->getSinglePredecessor(); in InitLoopCount()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXIntrinsics.cpp170 BasicBlock *ColLoopHeader = ColBody->getSinglePredecessor(); in createTileLoadStoreLoops()
171 BasicBlock *RowLoopHeader = RowBody->getSinglePredecessor(); in createTileLoadStoreLoops()
290 BasicBlock *ColLoopHeader = ColBody->getSinglePredecessor(); in createTileDPLoops()
291 BasicBlock *RowLoopHeader = RowBody->getSinglePredecessor(); in createTileDPLoops()
292 BasicBlock *InnerLoopHeader = InnerBody->getSinglePredecessor(); in createTileDPLoops()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp212 BasicBlock *B2 = BB.getSinglePredecessor(); in serializeICMPCrossBB()
216 BasicBlock *B1 = B2->getSinglePredecessor(); in serializeICMPCrossBB()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DBasicBlock.h406 LLVM_ABI const BasicBlock *getSinglePredecessor() const;
407 BasicBlock *getSinglePredecessor() { in getSinglePredecessor() function
409 static_cast<const BasicBlock *>(this)->getSinglePredecessor()); in getSinglePredecessor()
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/Transforms/
H A DCIRCanonicalize.cpp54 dest->getSinglePredecessor() == block) { in matchAndRewrite()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp164 if (!Preheader->getSinglePredecessor()) in runOnLoop()
166 Setup = FindLoopIterations(Preheader->getSinglePredecessor()); in runOnLoop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp58 if (!DestBB->getSinglePredecessor()) { in insertAfterInvokes()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Coroutines/
H A DSuspendCrossingInfo.h137 UseBB = UseBB->getSinglePredecessor(); in isDefinitionAcrossSuspend()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineBasicBlock.h866 LLVM_ABI const MachineBasicBlock *getSinglePredecessor() const;
867 MachineBasicBlock *getSinglePredecessor() {
869 static_cast<const MachineBasicBlock *>(this)->getSinglePredecessor());
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DMaterializationUtils.cpp187 Use->getParent()->getSinglePredecessor(); in rewriteMaterializableInstructions()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DBasicBlock.cpp437 const BasicBlock *BasicBlock::getSinglePredecessor() const { in getSinglePredecessor() function in BasicBlock
595 assert((!isa<PHINode>(*I) || getSinglePredecessor()) && in splitBasicBlockBefore()
H A DDominators.cpp224 if (End->getSinglePredecessor()) in dominates()

123