Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/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.cpp241 auto *SinglePredBB = PredBB->getSinglePredecessor(); in updatePredecessorProfileMetadata()
1240 BasicBlock *CurrentPred = BB->getSinglePredecessor(); in processImpliedCondition()
1281 CurrentPred = CurrentBB->getSinglePredecessor(); in processImpliedCondition()
1306 if (LoadBB->getSinglePredecessor()) in simplifyPartiallyRedundantLoad()
1396 SinglePredBB = SinglePredBB->getSinglePredecessor(); in simplifyPartiallyRedundantLoad()
1574 BasicBlock *PredBB = BB->getSinglePredecessor(); in evaluateOnPredecessorEdge()
1959 BasicBlock *SinglePred = BB->getSinglePredecessor(); in maybeMergeBasicBlockIntoOnlyPred()
2128 BasicBlock *PredBB = BB->getSinglePredecessor(); in maybethreadThroughTwoBasicBlocks()
2141 if (PredBB->getSinglePredecessor()) in maybethreadThroughTwoBasicBlocks()
2971 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 DLoopDistribute.cpp444 BasicBlock *Pred = OrigPH->getSinglePredecessor(); in cloneLoops()
807 if (!PH->getSinglePredecessor() || &*PH->begin() != PH->getTerminator()) in processLoop()
H A DLowerExpectIntrinsic.cpp194 BB = BB->getSinglePredecessor(); in handlePhiDef()
/llvm-project-15.0.7/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.cpp157 BasicBlock *PP = Pred->getSinglePredecessor(); in FlattenParallelAndOr()
253 CurrBlock = CurrBlock->getSinglePredecessor()) { in FlattenParallelAndOr()
H A DDemoteRegToStack.cpp46 if (!II->getNormalDest()->getSinglePredecessor()) { in DemoteRegToStack()
H A DLoopRotationUtils.cpp368 assert(NewHeader->getSinglePredecessor() && in rotateLoop()
774 BasicBlock *LastExit = Latch->getSinglePredecessor(); in simplifyLoopLatch()
H A DSimplifyCFG.cpp3768 for (auto &I : *QFB->getSinglePredecessor()) in mergeConditionalStoreToAddress()
4059 if (BB->getSinglePredecessor()) { in SimplifyCondBranchToCondBranch()
4422 BasicBlock *Pred = BB->getSinglePredecessor(); in tryToSimplifyUncondBranchWithICmpInIt()
5349 if (!BB->getSinglePredecessor()) in FindPHIForConditionForwarding()
6576 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in simplifySwitch()
6813 BasicBlock *PPred = P->getSinglePredecessor(); in allPredecessorsComeFromSameSource()
6836 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in simplifyCondBranch()
6881 if (BI->getSuccessor(0)->getSinglePredecessor()) { in simplifyCondBranch()
6882 if (BI->getSuccessor(1)->getSinglePredecessor()) { in simplifyCondBranch()
6895 } else if (BI->getSuccessor(1)->getSinglePredecessor()) { in simplifyCondBranch()
[all …]
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DBasicBlockUtilsTest.cpp98 EXPECT_EQ(NewBB->getSinglePredecessor(), SrcBlock); in TEST()
135 EXPECT_EQ(NewBB->getSinglePredecessor(), SrcBlock); in TEST()
207 EXPECT_EQ(NewBB->getSinglePredecessor(), SrcBlock); in TEST()
292 EXPECT_EQ(NewBB->getSinglePredecessor(), SrcBlock); in TEST()
337 EXPECT_EQ(DestBlock->getSinglePredecessor(), NewBB); in TEST()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DBasicBlock.h244 const BasicBlock *getSinglePredecessor() const;
245 BasicBlock *getSinglePredecessor() { in getSinglePredecessor() function
247 static_cast<const BasicBlock *>(this)->getSinglePredecessor()); in getSinglePredecessor()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/mlir/lib/Dialect/ControlFlow/IR/
H A DControlFlowOps.cpp336 Block *predecessor = currentBlock->getSinglePredecessor(); in matchAndRewrite()
396 if (condbr.getTrueDest()->getSinglePredecessor()) { in matchAndRewrite()
411 if (condbr.getFalseDest()->getSinglePredecessor()) { in matchAndRewrite()
793 Block *predecessor = currentBlock->getSinglePredecessor(); in simplifySwitchFromSwitchOnSameCondition()
844 Block *predecessor = currentBlock->getSinglePredecessor(); in simplifySwitchFromDefaultSwitchOnSameCondition()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/examples/IRTransforms/
H A DSimplifyCFG.cpp271 BasicBlock *Pred = BB.getSinglePredecessor(); in mergeIntoSinglePredecessor_v1()
313 BasicBlock *Pred = BB.getSinglePredecessor(); in mergeIntoSinglePredecessor_v2()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp170 if (!Preheader->getSinglePredecessor()) in runOnLoop()
172 Setup = FindLoopIterations(Preheader->getSinglePredecessor()); in runOnLoop()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp230 BasicBlock *B2 = BB.getSinglePredecessor(); in serializeICMPCrossBB()
234 BasicBlock *B1 = B2->getSinglePredecessor(); in serializeICMPCrossBB()
/llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp79 if (!DestBB->getSinglePredecessor()) { in insertAfterInvokes()
/llvm-project-15.0.7/llvm/lib/IR/
H A DBasicBlock.cpp261 const BasicBlock *BasicBlock::getSinglePredecessor() const { in getSinglePredecessor() function in BasicBlock
415 assert((!isa<PHINode>(*I) || getSinglePredecessor()) && in splitBasicBlockBefore()
H A DDominators.cpp218 if (End->getSinglePredecessor()) in dominates()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DBlock.h241 Block *getSinglePredecessor();
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DCodeGeneration.cpp226 auto *SplitBlock = StartBlock->getSinglePredecessor(); in generateCode()
/llvm-project-15.0.7/mlir/lib/IR/
H A DBlock.cpp251 Block *Block::getSinglePredecessor() { in getSinglePredecessor() function in Block

123