/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 288 if (!BI || BI->isConditional() || BI->getSuccessor(0) != BB) in DominatesMergePoint() 591 BasicBlock *Succ = BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_NE); in GetValueEqualityComparisonCases() 595 return BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_EQ); in GetValueEqualityComparisonCases() 1036 if (NewSI->getSuccessor(i) == BB) { in FoldValueComparisonIntoPredecessors() 1084 BasicBlock *BB1 = BI->getSuccessor(0); // The true destination. in HoistThenElseCodeToIf() 1085 BasicBlock *BB2 = BI->getSuccessor(1); // The false destination in HoistThenElseCodeToIf() 1228 BasicBlock *BBEnd = BI1->getSuccessor(0); in SinkThenElseCodeToEnd() 1498 BasicBlock *EndBB = ThenBB->getTerminator()->getSuccessor(0); in SpeculativelyExecuteBB() 1503 if (ThenBB != BI->getSuccessor(0)) { in SpeculativelyExecuteBB() 1504 assert(ThenBB == BI->getSuccessor(1) && "No edge from 'if' block?"); in SpeculativelyExecuteBB() [all …]
|
D | FlattenCFG.cpp | 194 BasicBlock *PS1 = PBI->getSuccessor(0); in FlattenParallelAndOr() 195 BasicBlock *PS2 = PBI->getSuccessor(1); in FlattenParallelAndOr() 223 BasicBlock *PS1 = TBB->getSuccessor(0); in FlattenParallelAndOr() 224 BasicBlock *PS2 = TBB->getSuccessor(1); in FlattenParallelAndOr() 231 (PS1->getTerminator()->getSuccessor(0) != PS2)) { in FlattenParallelAndOr() 234 (PS2->getTerminator()->getSuccessor(0) != PS1)) in FlattenParallelAndOr() 275 CB = PBI->getSuccessor(1 - Idx); in FlattenParallelAndOr()
|
D | BasicBlockUtils.cpp | 246 return LatchTerm->getSuccessor(SuccNum); in SplitEdge() 840 if (Pred1Br->getSuccessor(0) == BB && in GetIfCondition() 841 Pred1Br->getSuccessor(1) == Pred2) { in GetIfCondition() 844 } else if (Pred1Br->getSuccessor(0) == Pred2 && in GetIfCondition() 845 Pred1Br->getSuccessor(1) == BB) { in GetIfCondition() 869 if (BI->getSuccessor(0) == Pred1) { in GetIfCondition()
|
D | CodeExtractor.cpp | 529 if (!Blocks.count(TI->getSuccessor(i))) { in emitCallAndSwitchStatement() 530 BasicBlock *OldTarget = TI->getSuccessor(i); in emitCallAndSwitchStatement() 656 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch); in emitCallAndSwitchStatement() 660 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch->getSuccessor(2), in emitCallAndSwitchStatement() 668 TheSwitch->setDefaultDest(TheSwitch->getSuccessor(NumExitBlocks)); in emitCallAndSwitchStatement()
|
D | BreakCriticalEdges.cpp | 141 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitCriticalEdge() 188 if (TI->getSuccessor(i) != DestBB) continue; in SplitCriticalEdge()
|
D | LoopSimplify.cpp | 446 if (TI->getSuccessor(Op) == Header) in insertUniqueBackedgeBlock() 519 !L->contains(BI->getSuccessor(0)))); in simplifyOneLoop() 694 BI->getSuccessor(0)->removePredecessor(ExitingBlock); in simplifyOneLoop() 695 BI->getSuccessor(1)->removePredecessor(ExitingBlock); in simplifyOneLoop()
|
D | LoopUnroll.cpp | 285 bool ContinueOnTrue = L->contains(BI->getSuccessor(0)); in UnrollLoop() 286 BasicBlock *LoopExit = BI->getSuccessor(ContinueOnTrue); in UnrollLoop() 477 BasicBlock *Dest = Term->getSuccessor(0); in UnrollLoop()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopInterchange.cpp | 539 if (OuterMostLoopLatchBI->getSuccessor(0) == OuterMostLoop->getHeader()) in processLoopList() 540 LoopNestExit = OuterMostLoopLatchBI->getSuccessor(1); in processLoopList() 542 LoopNestExit = OuterMostLoopLatchBI->getSuccessor(0); in processLoopList() 656 if (outerLoopHeaderBI->getSuccessor(i) != InnerLoopPreHeader && in tightlyNested() 657 outerLoopHeaderBI->getSuccessor(i) != OuterLoopLatch) in tightlyNested() 744 if (BI->getSuccessor(i) == LoopHeader) in getLoopLatchExitBlock() 746 return BI->getSuccessor(i); in getLoopLatchExitBlock() 1199 if (OuterLoopPredecessorBI->getSuccessor(i) == OuterLoopPreHeader) in adjustLoopBranches() 1205 if (OuterLoopHeaderBI->getSuccessor(i) == OuterLoopLatch) in adjustLoopBranches() 1207 else if (OuterLoopHeaderBI->getSuccessor(i) == InnerLoopPreHeader) in adjustLoopBranches() [all …]
|
D | MergedLoadStoreMotion.cpp | 202 BasicBlock *Succ0 = BI->getSuccessor(0); in getDiamondTail() 203 BasicBlock *Tail = Succ0->getTerminator()->getSuccessor(0); in getDiamondTail() 219 BasicBlock *Succ0 = BI->getSuccessor(0); in isDiamondHead() 220 BasicBlock *Succ1 = BI->getSuccessor(1); in isDiamondHead() 229 BasicBlock *Tail = Succ0->getTerminator()->getSuccessor(0); in isDiamondHead() 231 if (Succ1->getTerminator()->getSuccessor(0) != Tail) in isDiamondHead() 362 BasicBlock *Succ0 = BI->getSuccessor(0); in mergeLoads() 363 BasicBlock *Succ1 = BI->getSuccessor(1); in mergeLoads()
|
D | JumpThreading.cpp | 254 BasicBlock *Succ = BI->getSuccessor(0); in runOnFunction() 680 BasicBlock *TestBB = BBTerm->getSuccessor(MinSucc); in GetBestDestForJumpOnUndef() 684 TestBB = BBTerm->getSuccessor(i); in GetBestDestForJumpOnUndef() 776 BBTerm->getSuccessor(i)->removePredecessor(BB, true); in ProcessBlock() 781 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in ProcessBlock() 822 CondBr->getSuccessor(ToRemove)->removePredecessor(BB, true); in ProcessBlock() 823 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock() 902 if (!PBI || !PBI->isConditional() || PBI->getSuccessor(0) != CurrentBB) in ProcessImpliedCondition() 906 BI->getSuccessor(1)->removePredecessor(BB); in ProcessImpliedCondition() 907 BranchInst::Create(BI->getSuccessor(0), BI); in ProcessImpliedCondition() [all …]
|
D | LoopRotation.cpp | 190 BasicBlock *Exit = BI->getSuccessor(0); in rotateLoop() 191 BasicBlock *NewHeader = BI->getSuccessor(1); in rotateLoop() 294 PHBI->getSuccessor(cast<ConstantInt>(PHBI->getCondition())->isZero()) in rotateLoop() 512 unsigned FallThruPath = BI->getSuccessor(0) == Latch ? 0 : 1; in simplifyLoopLatch() 513 BasicBlock *Header = Jmp->getSuccessor(0); in simplifyLoopLatch()
|
D | SpeculativeExecution.cpp | 134 BasicBlock &Succ0 = *BI->getSuccessor(0); in runOnBasicBlock() 135 BasicBlock &Succ1 = *BI->getSuccessor(1); in runOnBasicBlock()
|
D | LoopUnswitch.cpp | 847 CurrentBB = BI->getSuccessor(0); in TryTrivialLoopUnswitch() 849 CurrentBB = BI->getSuccessor(0); in TryTrivialLoopUnswitch() 851 CurrentBB = BI->getSuccessor(1); in TryTrivialLoopUnswitch() 886 BI->getSuccessor(0)))) { in TryTrivialLoopUnswitch() 889 BI->getSuccessor(1)))) { in TryTrivialLoopUnswitch() 1050 BasicBlock *ExitSucc = NewExit->getTerminator()->getSuccessor(0); in UnswitchNontrivialCondition() 1085 assert(OldBR->isUnconditional() && OldBR->getSuccessor(0) == LoopBlocks[0] && in UnswitchNontrivialCondition() 1308 BasicBlock *Succ = BI->getSuccessor(0); in SimplifyCode()
|
D | StructurizeCFG.cpp | 438 BasicBlock *Succ = Term->getSuccessor(i); in gatherPredicates() 446 BasicBlock *Other = Term->getSuccessor(!i); in gatherPredicates() 522 BasicBlock *SuccTrue = Term->getSuccessor(0); in insertConditions() 523 BasicBlock *SuccFalse = Term->getSuccessor(1); in insertConditions()
|
D | EarlyCSE.cpp | 525 assert(BI->getSuccessor(0) == BB || BI->getSuccessor(1) == BB); in processNode() 526 auto *ConditionalConstant = (BI->getSuccessor(0) == BB) ? in processNode()
|
D | LoopUnrollPass.cpp | 642 Succ = BI->getSuccessor(0); in analyzeLoopUnrollCost() 644 Succ = BI->getSuccessor( in analyzeLoopUnrollCost() 657 Succ = SI->getSuccessor(0); in analyzeLoopUnrollCost()
|
D | LoopIdiomRecognize.cpp | 741 if ((Pred == ICmpInst::ICMP_NE && BI->getSuccessor(0) == LoopEntry) || in matchCondition() 742 (Pred == ICmpInst::ICMP_EQ && BI->getSuccessor(1) == LoopEntry)) in matchCondition() 1040 (LbBr->getSuccessor(0) == Body) ? CmpInst::ICMP_UGT : CmpInst::ICMP_SLE; in transformLoopToPopcount()
|
/external/llvm/lib/Target/AMDGPU/ |
D | SIAnnotateControlFlow.cpp | 199 push(Term->getSuccessor(1), ExtractValueInst::Create(Ret, 1, "", Term)); in openIf() 206 push(Term->getSuccessor(1), ExtractValueInst::Create(Ret, 1, "", Term)); in insertElse() 284 BasicBlock *Target = Term->getSuccessor(1); in handleLoop() 298 push(Term->getSuccessor(0), Arg); in handleLoop() 338 if (I.nodeVisited(Term->getSuccessor(1))) { in runOnFunction()
|
/external/llvm/tools/llvm-diff/ |
D | DifferenceEngine.cpp | 301 if (TryUnify) tryUnify(LI->getSuccessor(1), RI->getSuccessor(1)); in diff() 303 if (TryUnify) tryUnify(LI->getSuccessor(0), RI->getSuccessor(0)); in diff() 612 tryUnify(LTerm->getSuccessor(0), RInvoke->getNormalDest()); in runBlockDiff() 625 tryUnify(LInvoke->getNormalDest(), RTerm->getSuccessor(0)); in runBlockDiff()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXImageOptimizer.cpp | 157 Dest = BI->getSuccessor(1); in replaceWith() 160 Dest = BI->getSuccessor(0); in replaceWith()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | BasicBlockUtils.h | 151 if (TI->getSuccessor(i) == Succ) 168 if (TI->getSuccessor(i) == Dst)
|
/external/llvm/lib/Analysis/ |
D | CFG.cpp | 80 if (Term->getSuccessor(i) == Succ) in GetSuccessorNumber() 93 const BasicBlock *Dest = TI->getSuccessor(SuccNum); in isCriticalEdge()
|
D | SparsePropagation.cpp | 212 if (TI->getSuccessor(i) == To && SuccFeasible[i]) in isEdgeFeasible() 227 markEdgeExecutable(BB, TI.getSuccessor(i)); in visitTerminatorInst()
|
/external/llvm/unittests/IR/ |
D | IRBuilderTest.cpp | 91 EXPECT_EQ(TBB, TI->getSuccessor(0)); in TEST_F() 92 EXPECT_EQ(FBB, TI->getSuccessor(1)); in TEST_F() 100 EXPECT_EQ(TBB, TI->getSuccessor(0)); in TEST_F() 101 EXPECT_EQ(FBB, TI->getSuccessor(1)); in TEST_F()
|
/external/clang/lib/CodeGen/ |
D | CGCleanup.cpp | 357 llvm::SwitchInst::Create(Load, Br->getSuccessor(0), 4, Block); in TransitionToCleanupSwitch() 470 assert(Br->getSuccessor(0) == Entry); in SimplifyCleanupEntry() 530 assert(Br->isUnconditional() && Br->getSuccessor(0) == From); in ForwardPrebranchedFallthrough() 535 if (Switch->getSuccessor(I) == From) in ForwardPrebranchedFallthrough() 633 FallthroughSource->getTerminator()->getSuccessor(0) in PopCleanupBlock()
|