Home
last modified time | relevance | path

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

123

/src/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.cpp146 if (!Succ0->getSinglePredecessor()) in isDiamondHead()
148 if (!Succ1->getSinglePredecessor()) in isDiamondHead()
H A DJumpThreading.cpp177 auto *SinglePredBB = PredBB->getSinglePredecessor(); in updatePredecessorProfileMetadata()
1164 BasicBlock *CurrentPred = BB->getSinglePredecessor(); in processImpliedCondition()
1205 CurrentPred = CurrentBB->getSinglePredecessor(); in processImpliedCondition()
1230 if (LoadBB->getSinglePredecessor()) in simplifyPartiallyRedundantLoad()
1326 SinglePredBB = SinglePredBB->getSinglePredecessor(); in simplifyPartiallyRedundantLoad()
1503 BasicBlock *PredBB = BB->getSinglePredecessor(); in evaluateOnPredecessorEdge()
1890 BasicBlock *SinglePred = BB->getSinglePredecessor(); in maybeMergeBasicBlockIntoOnlyPred()
2143 BasicBlock *PredBB = BB->getSinglePredecessor(); in maybethreadThroughTwoBasicBlocks()
2156 if (PredBB->getSinglePredecessor()) in maybethreadThroughTwoBasicBlocks()
3035 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 DGVN.cpp1218 for (BasicBlock *BB = FromBB; BB; BB = BB->getSinglePredecessor()) in findDominatingValue()
1443 if (!SuccBB->getSinglePredecessor()) in findLoadToHoistIntoPred()
1594 while (TmpBB->getSinglePredecessor()) { in PerformLoadPRE()
1595 TmpBB = TmpBB->getSinglePredecessor(); in PerformLoadPRE()
1743 LoadPtr = Address.translateWithInsertion(Cur, Cur->getSinglePredecessor(), in PerformLoadPRE()
1749 Cur = Cur->getSinglePredecessor(); in PerformLoadPRE()
2417 const BasicBlock *Pred = E.getEnd()->getSinglePredecessor(); in isOnlyReachableViaThisEdge()
3316 if (!DeadRoot->getSinglePredecessor()) in processFoldableCondBr()
H A DLoopDistribute.cpp439 BasicBlock *Pred = OrigPH->getSinglePredecessor(); in cloneLoops()
805 if (!PH->getSinglePredecessor() || &*PH->begin() != PH->getTerminator()) in processLoop()
H A DLowerExpectIntrinsic.cpp201 BB = BB->getSinglePredecessor(); in handlePhiDef()
/src/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.cpp1607 if (Succ->hasAddressTaken() || !Succ->getSinglePredecessor()) in hoistCommonCodeFromSuccessors()
4103 for (auto &I : *QFB->getSinglePredecessor()) in mergeConditionalStoreToAddress()
4167 BasicBlock *TruePred = QTB ? QTB : QFB->getSinglePredecessor(); in mergeConditionalStoreToAddress()
4177 Value *PCond = cast<BranchInst>(PFB->getSinglePredecessor()->getTerminator()) in mergeConditionalStoreToAddress()
4179 Value *QCond = cast<BranchInst>(QFB->getSinglePredecessor()->getTerminator()) in mergeConditionalStoreToAddress()
4287 return BB->getSinglePredecessor() == P && BB->getSingleSuccessor() == S; in mergeConditionalStores()
4343 !BI->getParent()->getSinglePredecessor()) in tryWidenCondBranchToCondBranch()
4404 if (BB->getSinglePredecessor()) { in SimplifyCondBranchToCondBranch()
4783 BasicBlock *Pred = BB->getSinglePredecessor(); in tryToSimplifyUncondBranchWithICmpInIt()
5259 if (UnwindDest->getSinglePredecessor() != RI->getParent()) in mergeCleanupPad()
[all …]
H A DLoopRotationUtils.cpp531 assert(NewHeader->getSinglePredecessor() && in rotateLoop()
1024 BasicBlock *LastExit = Latch->getSinglePredecessor(); in simplifyLoopLatch()
H A DPredicateInfo.cpp463 if (!Succ->getSinglePredecessor()) in processBranch()
491 if (!TargetBlock->getSinglePredecessor()) in processSwitch()
H A DLibCallsShrinkWrap.cpp482 LLVM_DEBUG(dbgs() << *CallBB->getSinglePredecessor() << *CallBB in shrinkWrapCI()
/src/contrib/llvm-project/llvm/lib/CodeGen/
H A DHardwareLoops.cpp403 if (!Preheader->getSinglePredecessor()) in CanGenerateTest()
406 BasicBlock *Pred = Preheader->getSinglePredecessor(); in CanGenerateTest()
468 if (UseLoopGuard && BB->getSinglePredecessor() && in InitLoopCount()
470 BasicBlock *Predecessor = BB->getSinglePredecessor(); in InitLoopCount()
/src/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXIntrinsics.cpp172 BasicBlock *ColLoopHeader = ColBody->getSinglePredecessor(); in createTileLoadStoreLoops()
173 BasicBlock *RowLoopHeader = RowBody->getSinglePredecessor(); in createTileLoadStoreLoops()
292 BasicBlock *ColLoopHeader = ColBody->getSinglePredecessor(); in createTileDPLoops()
293 BasicBlock *RowLoopHeader = RowBody->getSinglePredecessor(); in createTileDPLoops()
294 BasicBlock *InnerLoopHeader = InnerBody->getSinglePredecessor(); in createTileDPLoops()
/src/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp213 BasicBlock *B2 = BB.getSinglePredecessor(); in serializeICMPCrossBB()
217 BasicBlock *B1 = B2->getSinglePredecessor(); in serializeICMPCrossBB()
/src/contrib/llvm-project/llvm/include/llvm/IR/
H A DBasicBlock.h385 const BasicBlock *getSinglePredecessor() const;
386 BasicBlock *getSinglePredecessor() { in getSinglePredecessor() function
388 static_cast<const BasicBlock *>(this)->getSinglePredecessor()); in getSinglePredecessor()
/src/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp58 if (!DestBB->getSinglePredecessor()) { in insertAfterInvokes()
/src/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanHCFGBuilder.cpp86 auto *SinglePred = BB->getSinglePredecessor(); in setVPBBPredsFromBB()
342 cast<VPBasicBlock>(TheRegion->getSinglePredecessor()); in buildPlainCFG()
H A DVPlanVerifier.cpp167 IRBB->getSinglePredecessor() != MiddleBB) { in verifyVPBasicBlock()
/src/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp166 if (!Preheader->getSinglePredecessor()) in runOnLoop()
168 Setup = FindLoopIterations(Preheader->getSinglePredecessor()); in runOnLoop()
/src/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineBasicBlock.h836 const MachineBasicBlock *getSinglePredecessor() const;
837 MachineBasicBlock *getSinglePredecessor() {
839 static_cast<const MachineBasicBlock *>(this)->getSinglePredecessor());
/src/contrib/llvm-project/llvm/lib/IR/
H A DDominators.cpp211 if (End->getSinglePredecessor()) in dominates()
H A DBasicBlock.cpp457 const BasicBlock *BasicBlock::getSinglePredecessor() const { in getSinglePredecessor() function in BasicBlock
612 assert((!isa<PHINode>(*I) || getSinglePredecessor()) && in splitBasicBlockBefore()

123