/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 272 if (!BI || BI->isConditional() || BI->getSuccessor(0) != BB) in DominatesMergePoint() 566 BasicBlock *Succ = BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_NE); in GetValueEqualityComparisonCases() 570 return BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_EQ); in GetValueEqualityComparisonCases() 1013 if (NewSI->getSuccessor(i) == BB) { in FoldValueComparisonIntoPredecessors() 1062 BasicBlock *BB1 = BI->getSuccessor(0); // The true destination. in HoistThenElseCodeToIf() 1063 BasicBlock *BB2 = BI->getSuccessor(1); // The false destination in HoistThenElseCodeToIf() 1207 BasicBlock *BBEnd = BI1->getSuccessor(0); in SinkThenElseCodeToEnd() 1476 BasicBlock *EndBB = ThenBB->getTerminator()->getSuccessor(0); in SpeculativelyExecuteBB() 1481 if (ThenBB != BI->getSuccessor(0)) { in SpeculativelyExecuteBB() 1482 assert(ThenBB == BI->getSuccessor(1) && "No edge from 'if' block?"); in SpeculativelyExecuteBB() [all …]
|
D | FlattenCFG.cpp | 195 BasicBlock *PS1 = PBI->getSuccessor(0); in FlattenParallelAndOr() 196 BasicBlock *PS2 = PBI->getSuccessor(1); in FlattenParallelAndOr() 224 BasicBlock *PS1 = TBB->getSuccessor(0); in FlattenParallelAndOr() 225 BasicBlock *PS2 = TBB->getSuccessor(1); in FlattenParallelAndOr() 232 (PS1->getTerminator()->getSuccessor(0) != PS2)) { in FlattenParallelAndOr() 235 (PS2->getTerminator()->getSuccessor(0) != PS1)) in FlattenParallelAndOr() 276 CB = PBI->getSuccessor(1 - Idx); in FlattenParallelAndOr()
|
D | BasicBlockUtils.cpp | 45 BBTerm->getSuccessor(i)->removePredecessor(BB); in DeleteDeadBlock() 242 return LatchTerm->getSuccessor(SuccNum); in SplitEdge() 834 if (Pred1Br->getSuccessor(0) == BB && in GetIfCondition() 835 Pred1Br->getSuccessor(1) == Pred2) { in GetIfCondition() 838 } else if (Pred1Br->getSuccessor(0) == Pred2 && in GetIfCondition() 839 Pred1Br->getSuccessor(1) == BB) { in GetIfCondition() 863 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() 652 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch); in emitCallAndSwitchStatement() 656 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch->getSuccessor(2), in emitCallAndSwitchStatement() 664 TheSwitch->setDefaultDest(TheSwitch->getSuccessor(NumExitBlocks)); in emitCallAndSwitchStatement()
|
D | BreakCriticalEdges.cpp | 142 BasicBlock *DestBB = TI->getSuccessor(SuccNum); in SplitCriticalEdge() 189 if (TI->getSuccessor(i) != DestBB) continue; in SplitCriticalEdge()
|
D | CloneFunction.cpp | 401 ToClone.push_back(TI->getSuccessor(i)); in CloneBlock() 419 BasicBlock *Dest = BI->getSuccessor(!Cond->getZExtValue()); in CloneBlock() 451 ToClone.push_back(TI->getSuccessor(i)); in CloneBlock() 667 BasicBlock *Dest = BI->getSuccessor(0); in CloneAndPruneIntoFromInst()
|
D | LoopSimplify.cpp | 458 if (TI->getSuccessor(Op) == Header) in insertUniqueBackedgeBlock() 536 !L->contains(BI->getSuccessor(0)))); in simplifyOneLoop() 712 BI->getSuccessor(0)->removePredecessor(ExitingBlock); in simplifyOneLoop() 713 BI->getSuccessor(1)->removePredecessor(ExitingBlock); in simplifyOneLoop()
|
D | LoopUnroll.cpp | 284 bool ContinueOnTrue = L->contains(BI->getSuccessor(0)); in UnrollLoop() 285 BasicBlock *LoopExit = BI->getSuccessor(ContinueOnTrue); in UnrollLoop() 475 BasicBlock *Dest = Term->getSuccessor(0); in UnrollLoop()
|
D | AddDiscriminators.cpp | 182 BasicBlock *Succ = Last->getSuccessor(I); in runOnFunction()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopInterchange.cpp | 516 if (OuterMostLoopLatchBI->getSuccessor(0) == OuterMostLoop->getHeader()) in processLoopList() 517 LoopNestExit = OuterMostLoopLatchBI->getSuccessor(1); in processLoopList() 519 LoopNestExit = OuterMostLoopLatchBI->getSuccessor(0); in processLoopList() 614 if (outerLoopHeaderBI->getSuccessor(i) != InnerLoopPreHeader && in tightlyNested() 615 outerLoopHeaderBI->getSuccessor(i) != OuterLoopLatch) in tightlyNested() 1063 if (OuterLoopPredecessorBI->getSuccessor(i) == OuterLoopPreHeader) in adjustLoopBranches() 1069 if (OuterLoopHeaderBI->getSuccessor(i) == OuterLoopLatch) in adjustLoopBranches() 1071 else if (OuterLoopHeaderBI->getSuccessor(i) == InnerLoopPreHeader) in adjustLoopBranches() 1079 if (InnerLoopLatchBI->getSuccessor(0) == InnerLoopHeader) in adjustLoopBranches() 1080 InnerLoopLatchSuccessor = InnerLoopLatchBI->getSuccessor(1); in adjustLoopBranches() [all …]
|
D | MergedLoadStoreMotion.cpp | 199 BasicBlock *Succ0 = BI->getSuccessor(0); in getDiamondTail() 200 BasicBlock *Tail = Succ0->getTerminator()->getSuccessor(0); in getDiamondTail() 216 BasicBlock *Succ0 = BI->getSuccessor(0); in isDiamondHead() 217 BasicBlock *Succ1 = BI->getSuccessor(1); in isDiamondHead() 226 BasicBlock *Tail = Succ0->getTerminator()->getSuccessor(0); in isDiamondHead() 228 if (Succ1->getTerminator()->getSuccessor(0) != Tail) in isDiamondHead() 364 BasicBlock *Succ0 = BI->getSuccessor(0); in mergeLoads() 365 BasicBlock *Succ1 = BI->getSuccessor(1); in mergeLoads()
|
D | JumpThreading.cpp | 212 BasicBlock *Succ = BI->getSuccessor(0); in runOnFunction() 633 BasicBlock *TestBB = BBTerm->getSuccessor(MinSucc); in GetBestDestForJumpOnUndef() 637 TestBB = BBTerm->getSuccessor(i); in GetBestDestForJumpOnUndef() 728 BBTerm->getSuccessor(i)->removePredecessor(BB, true); in ProcessBlock() 733 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in ProcessBlock() 791 CondBr->getSuccessor(ToRemove)->removePredecessor(BB, true); in ProcessBlock() 792 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock() 808 CondBr->getSuccessor(ToRemove)->removePredecessor(BB, true); in ProcessBlock() 809 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock() 1107 TI->getSuccessor(i)) == SamePopularity.end()) in FindMostPopularDest() [all …]
|
D | LoopRotation.cpp | 302 unsigned FallThruPath = BI->getSuccessor(0) == Latch ? 0 : 1; in simplifyLoopLatch() 303 BasicBlock *Header = Jmp->getSuccessor(0); in simplifyLoopLatch() 393 BasicBlock *Exit = BI->getSuccessor(0); in rotateLoop() 394 BasicBlock *NewHeader = BI->getSuccessor(1); in rotateLoop() 469 for (BasicBlock::iterator BI = TI->getSuccessor(i)->begin(); in rotateLoop() 497 PHBI->getSuccessor(cast<ConstantInt>(PHBI->getCondition())->isZero()) in rotateLoop()
|
D | StructurizeCFG.cpp | 362 BasicBlock *Succ = Term->getSuccessor(i); in analyzeLoops() 442 BasicBlock *Succ = Term->getSuccessor(i); in gatherPredicates() 450 BasicBlock *Other = Term->getSuccessor(!i); in gatherPredicates() 526 BasicBlock *SuccTrue = Term->getSuccessor(0); in insertConditions() 527 BasicBlock *SuccFalse = Term->getSuccessor(1); in insertConditions()
|
D | LoopUnswitch.cpp | 590 BI->getSuccessor(0)))) { in IsTrivialUnswitchCondition() 593 BI->getSuccessor(1)))) { in IsTrivialUnswitchCondition() 862 BasicBlock *ExitSucc = NewExit->getTerminator()->getSuccessor(0); in UnswitchNontrivialCondition() 896 assert(OldBR->isUnconditional() && OldBR->getSuccessor(0) == LoopBlocks[0] && in UnswitchNontrivialCondition() 1121 BasicBlock *Succ = BI->getSuccessor(0); in SimplifyCode()
|
D | SCCP.cpp | 605 return BI->getSuccessor(CI->isZero()) == To; in isEdgeFeasible() 745 markEdgeExecutable(BB, TI.getSuccessor(i)); in visitTerminatorInst() 1465 markEdgeExecutable(BB, TI->getSuccessor(1)); in ResolvedUndefsIn() 1795 BasicBlock *Succ = TI->getSuccessor(i); in runOnModule() 1797 TI->getSuccessor(i)->removePredecessor(BB); in runOnModule() 1875 BranchInst::Create(TI->getSuccessor(0), TI); in runOnModule() 1879 TI->getSuccessor(i)->removePredecessor(TI->getParent()); in runOnModule()
|
/external/llvm/lib/Target/R600/ |
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() 276 BasicBlock *Target = Term->getSuccessor(1); in handleLoop() 290 push(Term->getSuccessor(0), Arg); in handleLoop() 331 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/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/llvm/include/llvm/Transforms/Utils/ |
D | BasicBlockUtils.h | 163 if (TI->getSuccessor(i) == Succ) 180 if (TI->getSuccessor(i) == Dst)
|
/external/llvm/lib/Analysis/ |
D | CFG.cpp | 79 if (Term->getSuccessor(i) == Succ) in GetSuccessorNumber() 92 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/clang/lib/CodeGen/ |
D | CGCleanup.cpp | 330 llvm::SwitchInst::Create(Load, Br->getSuccessor(0), 4, Block); in TransitionToCleanupSwitch() 443 assert(Br->getSuccessor(0) == Entry); in SimplifyCleanupEntry() 516 assert(Br->isUnconditional() && Br->getSuccessor(0) == From); in ForwardPrebranchedFallthrough() 521 if (Switch->getSuccessor(I) == From) in ForwardPrebranchedFallthrough() 617 FallthroughSource->getTerminator()->getSuccessor(0) in PopCleanupBlock()
|
D | CGLoopInfo.cpp | 101 if (TI->getSuccessor(i) == L.getHeader()) { in InsertHelper()
|