reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/IR/PatternMatch.h
 1386         Succ = BI->getSuccessor(0);
 1407         return T.match(BI->getSuccessor(0)) && F.match(BI->getSuccessor(1));
 1407         return T.match(BI->getSuccessor(0)) && F.match(BI->getSuccessor(1));
lib/Analysis/BranchProbabilityInfo.cpp
  565           ((Result->isZeroValue() && B == BI->getSuccessor(0)) ||
  566            (Result->isOneValue() && B == BI->getSuccessor(1))))
lib/Analysis/InlineCost.cpp
 1867           BasicBlock *NextBB = BI->getSuccessor(SimpleCond->isZero() ? 1 : 0);
lib/Analysis/LazyValueInfo.cpp
 1387         BI->getSuccessor(0) != BI->getSuccessor(1)) {
 1387         BI->getSuccessor(0) != BI->getSuccessor(1)) {
 1388       bool isTrueDest = BI->getSuccessor(0) == BBTo;
 1389       assert(BI->getSuccessor(!isTrueDest) == BBTo &&
lib/Analysis/LoopInfo.cpp
  241   ICmpInst::Predicate Pred = (BI->getSuccessor(0) == L.getHeader())
  395   BasicBlock *GuardOtherSucc = (GuardBI->getSuccessor(0) == Preheader)
  396                                    ? GuardBI->getSuccessor(1)
  397                                    : GuardBI->getSuccessor(0);
lib/Analysis/MustExecute.cpp
  128     return BI->getSuccessor(Cond->getZExtValue() ? 1 : 0) == ExitBlock;
  148   if (ExitBlock == BI->getSuccessor(0))
  150   assert(ExitBlock == BI->getSuccessor(1) && "implied by above");
lib/Analysis/ScalarEvolution.cpp
 4331         assert(BI->getSuccessor(0) != BI->getSuccessor(1) &&
 4331         assert(BI->getSuccessor(0) != BI->getSuccessor(1) &&
 4334         IsPosBECond = BI->getSuccessor(0) == L->getHeader();
 5242   BasicBlockEdge LeftEdge(BI->getParent(), BI->getSuccessor(0));
 5243   BasicBlockEdge RightEdge(BI->getParent(), BI->getSuccessor(1));
 7143     bool ExitIfTrue = !L->contains(BI->getSuccessor(0));
 7144     assert(ExitIfTrue == L->contains(BI->getSuccessor(1)) &&
 9476                     LoopContinuePredicate->getSuccessor(0) != L->getHeader()))
 9553                         BB != ContinuePredicate->getSuccessor(0)))
 9653                      LoopEntryPredicate->getSuccessor(0) != Pair.second))
lib/Analysis/ValueTracking.cpp
 1961               BI->getSuccessor(Pred == ICmpInst::ICMP_EQ ? 1 : 0);
 4203     BasicBlockEdge NoWrapEdge(BI->getParent(), BI->getSuccessor(1));
lib/Bitcode/Writer/BitcodeWriter.cpp
 2726       Vals.push_back(VE.getValueID(II.getSuccessor(0)));
 2728         Vals.push_back(VE.getValueID(II.getSuccessor(1)));
lib/CodeGen/CodeGenPrepare.cpp
  616   BasicBlock *DestBB = BI->getSuccessor(0);
  821   BasicBlock *DestBB = BI->getSuccessor(0);
 2052     if (!BI || !BI->isUnconditional() || BI->getSuccessor(0) != BB)
lib/CodeGen/GlobalISel/IRTranslator.cpp
  390     const BasicBlock &TrueTgt = *cast<BasicBlock>(BrInst.getSuccessor(Succ++));
  395   const BasicBlock &BrTgt = *cast<BasicBlock>(BrInst.getSuccessor(Succ));
lib/CodeGen/HardwareLoops.cpp
  311   if (BI->getSuccessor(SuccIdx) != Preheader)
  385     if (LoopGuard->getSuccessor(0) != L->getLoopPreheader())
  404   if (!L->contains(ExitBranch->getSuccessor(0)))
  449   if (!L->contains(ExitBranch->getSuccessor(0)))
lib/CodeGen/SelectionDAG/FastISel.cpp
 1845       const BasicBlock *LLVMSucc = BI->getSuccessor(0);
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 2226   MachineBasicBlock *Succ0MBB = FuncInfo.MBBMap[I.getSuccessor(0)];
 2245   MachineBasicBlock *Succ1MBB = FuncInfo.MBBMap[I.getSuccessor(1)];
lib/ExecutionEngine/Interpreter/Execution.cpp
  938   Dest = I.getSuccessor(0);          // Uncond branches have a fixed dest...
  942       Dest = I.getSuccessor(1);
lib/IR/AsmWriter.cpp
 3724     writeOperand(BI.getSuccessor(0), true);
 3726     writeOperand(BI.getSuccessor(1), true);
lib/IR/SafepointIRVerifier.cpp
  146       if (BI->getSuccessor(0) == BI->getSuccessor(1))
  146       if (BI->getSuccessor(0) == BI->getSuccessor(1))
lib/Target/AArch64/AArch64FastISel.cpp
 2316   MachineBasicBlock *TBB = FuncInfo.MBBMap[BI->getSuccessor(0)];
 2317   MachineBasicBlock *FBB = FuncInfo.MBBMap[BI->getSuccessor(1)];
 2423     MachineBasicBlock *MSucc = FuncInfo.MBBMap[BI->getSuccessor(0)];
 2428   MachineBasicBlock *TBB = FuncInfo.MBBMap[BI->getSuccessor(0)];
 2429   MachineBasicBlock *FBB = FuncInfo.MBBMap[BI->getSuccessor(1)];
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  120           BasicBlock *Succ0 = Br->getSuccessor(0);
  121           BasicBlock *Succ1 = Br->getSuccessor(1);
lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.cpp
  195         BasicBlock *LoopHeaderBB = BI->getSuccessor(0);
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
  215   push(Term->getSuccessor(1), ExtractValueInst::Create(Ret, 1, "", Term));
  225   push(Term->getSuccessor(1), ExtractValueInst::Create(Ret, 1, "", Term));
  266   BasicBlock *Target = Term->getSuccessor(1);
  287   push(Term->getSuccessor(0), Arg);
  342     if (I.nodeVisited(Term->getSuccessor(1))) {
lib/Target/ARM/ARMFastISel.cpp
 1239   MachineBasicBlock *TBB = FuncInfo.MBBMap[BI->getSuccessor(0)];
 1240   MachineBasicBlock *FBB = FuncInfo.MBBMap[BI->getSuccessor(1)];
lib/Target/Mips/MipsFastISel.cpp
  954   MachineBasicBlock *TBB = FuncInfo.MBBMap[BI->getSuccessor(0)];
  955   MachineBasicBlock *FBB = FuncInfo.MBBMap[BI->getSuccessor(1)];
lib/Target/NVPTX/NVPTXImageOptimizer.cpp
  157         Dest = BI->getSuccessor(1);
  160         Dest = BI->getSuccessor(0);
lib/Target/PowerPC/PPCFastISel.cpp
  772   MachineBasicBlock *TBB = FuncInfo.MBBMap[BI->getSuccessor(0)];
  773   MachineBasicBlock *FBB = FuncInfo.MBBMap[BI->getSuccessor(1)];
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  541       bool TrueIsExit = !L->contains(BI->getSuccessor(0));
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
 1272     MachineBasicBlock *MSucc = FuncInfo.MBBMap[Br->getSuccessor(0)];
 1277   MachineBasicBlock *TBB = FuncInfo.MBBMap[Br->getSuccessor(0)];
 1278   MachineBasicBlock *FBB = FuncInfo.MBBMap[Br->getSuccessor(1)];
lib/Target/X86/X86FastISel.cpp
 1628   MachineBasicBlock *TrueMBB = FuncInfo.MBBMap[BI->getSuccessor(0)];
 1629   MachineBasicBlock *FalseMBB = FuncInfo.MBBMap[BI->getSuccessor(1)];
lib/Transforms/Coroutines/CoroSplit.cpp
  603     Builder.CreateBr(Branch->getSuccessor(0));
  919         BasicBlock *BB = BR->getSuccessor(0);
lib/Transforms/IPO/LowerTypeTests.cpp
  783         BasicBlock *Else = Br->getSuccessor(1);
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
 1536     if (OtherBr->getSuccessor(0) != StoreBB &&
 1537         OtherBr->getSuccessor(1) != StoreBB)
lib/Transforms/InstCombine/InstructionCombining.cpp
 2571       BI.getSuccessor(0) == BI.getSuccessor(1)) {
 2571       BI.getSuccessor(0) == BI.getSuccessor(1)) {
 3449         BasicBlock *ReachableBB = BI->getSuccessor(!CondVal);
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
  669   BasicBlock *IfThen = BI->getSuccessor(0);
  670   BasicBlock *IfElse = BI->getSuccessor(1);
  781       BasicBlock *S0 = BI->getSuccessor(0);
  782       BasicBlock *S1 = BI->getSuccessor(1);
 1820   assert(OldBR->isUnconditional() && OldBR->getSuccessor(0) == NewEntryBlock &&
 1866                               MergedBR->getSuccessor(0)->getTerminator())
 1897   BasicBlock *IfThen = BI->getSuccessor(1);
 1898   BasicBlock *IfElse = BI->getSuccessor(0);
 1912   bool ConditionTrue = HotTarget == BI->getSuccessor(0);
 1916   assert(ConditionTrue == (HotTarget == BI->getSuccessor(0)) &&
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
 1137     BasicBlock *Tail = BI->getSuccessor(0);
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  953     IRB.SetInsertPoint(&*Br->getSuccessor(0)->begin());
lib/Transforms/Scalar/EarlyCSE.cpp
  816   assert(BI->getSuccessor(0) == BB || BI->getSuccessor(1) == BB);
  816   assert(BI->getSuccessor(0) == BB || BI->getSuccessor(1) == BB);
  817   auto *TorF = (BI->getSuccessor(0) == BB)
  829       (BI->getSuccessor(0) == BB) ? Instruction::And : Instruction::Or;
lib/Transforms/Scalar/GVN.cpp
 1991     BasicBlock *TrueSucc = BI->getSuccessor(0);
 1992     BasicBlock *FalseSucc = BI->getSuccessor(1);
 2618   if (BI->getSuccessor(0) == BI->getSuccessor(1))
 2618   if (BI->getSuccessor(0) == BI->getSuccessor(1))
 2626       Cond->getZExtValue() ? BI->getSuccessor(1) : BI->getSuccessor(0);
 2626       Cond->getZExtValue() ? BI->getSuccessor(1) : BI->getSuccessor(0);
lib/Transforms/Scalar/GuardWidening.cpp
  481       DominatingBlock = cast<BranchInst>(DominatingGuard)->getSuccessor(0);
lib/Transforms/Scalar/IndVarSimplify.cpp
  356       (L->contains(TheBr->getSuccessor(0)) &&
  357        L->contains(TheBr->getSuccessor(1))))
 1882     auto *TrueSuccessor = BI->getSuccessor(0);
 1883     auto *FalseSuccessor = BI->getSuccessor(1);
 2481   if (L->contains(BI->getSuccessor(0)))
 2857     BI->getSuccessor(L->contains(BI->getSuccessor(0)) ? 1 : 0);
 2857     BI->getSuccessor(L->contains(BI->getSuccessor(0)) ? 1 : 0);
 2945       NewCond = L->contains(BI->getSuccessor(0)) ?
 2957       auto Pred = L->contains(BI->getSuccessor(0)) ?
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  770   unsigned LatchBrExitIdx = LatchBr->getSuccessor(0) == Header ? 1 : 0;
 1006   BasicBlock *LatchExit = LatchBr->getSuccessor(LatchBrExitIdx);
lib/Transforms/Scalar/JumpThreading.cpp
  282     if (PredBr->getSuccessor(0) == PredOutEdge.second) {
  426           !LoopHeaders.count(&BB) && !LoopHeaders.count(BI->getSuccessor(0)) &&
 1160         BasicBlock *ToRemoveSucc = CondBr->getSuccessor(ToRemove);
 1163           BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr);
 1258     if (PBI->getSuccessor(0) != CurrentBB && PBI->getSuccessor(1) != CurrentBB)
 1258     if (PBI->getSuccessor(0) != CurrentBB && PBI->getSuccessor(1) != CurrentBB)
 1261     bool CondIsTrue = PBI->getSuccessor(0) == CurrentBB;
 1265       BasicBlock *KeepSucc = BI->getSuccessor(*Implication ? 0 : 1);
 1266       BasicBlock *RemoveSucc = BI->getSuccessor(*Implication ? 1 : 0);
 1638       DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero());
 2364   AddPHINodeEntriesForMappedBlock(BBBranch->getSuccessor(0), BB, PredBB,
 2366   AddPHINodeEntriesForMappedBlock(BBBranch->getSuccessor(1), BB, PredBB,
 2692   BasicBlock *TrueDest = BI->getSuccessor(0);
 2693   BasicBlock *FalseDest = BI->getSuccessor(1);
lib/Transforms/Scalar/LICM.cpp
  599     BasicBlock *TrueDest = BI->getSuccessor(0);
  600     BasicBlock *FalseDest = BI->getSuccessor(1);
  667         if (Pair.first->getSuccessor(0) == BB) {
  669           PredecessorBlocks.erase(Pair.first->getSuccessor(1));
  670         } else if (Pair.first->getSuccessor(1) == BB) {
  672           PredecessorBlocks.erase(Pair.first->getSuccessor(0));
  674           PredecessorBlocks.erase(Pair.first->getSuccessor(0));
  675           PredecessorBlocks.erase(Pair.first->getSuccessor(1));
  694           return BB != Pair.second && (Pair.first->getSuccessor(0) == BB ||
  695                                        Pair.first->getSuccessor(1) == BB);
  715     BasicBlock *TrueDest = BI->getSuccessor(0);
  716     BasicBlock *FalseDest = BI->getSuccessor(1);
lib/Transforms/Scalar/LoopFuse.cpp
  255     return (GuardBranch->getSuccessor(0) == Preheader)
  256                ? GuardBranch->getSuccessor(1)
  257                : GuardBranch->getSuccessor(0);
 1078     if (FC0.GuardBranch->getSuccessor(0) == FC0.Preheader)
 1079       return (FC1.GuardBranch->getSuccessor(0) == FC1.Preheader);
 1081       return (FC1.GuardBranch->getSuccessor(1) == FC1.Preheader);
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 1236   BasicBlock *TrueSucc = BI->getSuccessor(0);
 1237   BasicBlock *FalseSucc = BI->getSuccessor(1);
 1766       (LbBr->getSuccessor(0) == Body) ? CmpInst::ICMP_NE : CmpInst::ICMP_EQ;
 1873         (LbBr->getSuccessor(0) == Body) ? CmpInst::ICMP_UGT : CmpInst::ICMP_SLE;
 2551     BasicBlock *SuccessorBB = OldTerminator->getSuccessor(0);
lib/Transforms/Scalar/LoopInterchange.cpp
 1327     if (BI->getSuccessor(i) == OldBB) {
 1499   if (InnerLoopLatchBI->getSuccessor(0) == InnerLoopHeader)
 1500     InnerLoopLatchSuccessor = InnerLoopLatchBI->getSuccessor(1);
 1502     InnerLoopLatchSuccessor = InnerLoopLatchBI->getSuccessor(0);
 1508   if (OuterLoopLatchBI->getSuccessor(0) == OuterLoopHeader)
 1509     OuterLoopLatchSuccessor = OuterLoopLatchBI->getSuccessor(1);
 1511     OuterLoopLatchSuccessor = OuterLoopLatchBI->getSuccessor(0);
lib/Transforms/Scalar/LoopPredication.cpp
  848   BasicBlock *TrueDest = BI->getSuccessor(0);
  850       (TrueDest == L->getHeader() || BI->getSuccessor(1) == L->getHeader()) &&
lib/Transforms/Scalar/LoopRerollPass.cpp
 1474     if (BI->getSuccessor(1) != Header)
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
   61     if (BI->getSuccessor(0) == BI->getSuccessor(1))
   61     if (BI->getSuccessor(0) == BI->getSuccessor(1))
   62       return BI->getSuccessor(0);
   66     return Cond->isZero() ? BI->getSuccessor(1) : BI->getSuccessor(0);
   66     return Cond->isZero() ? BI->getSuccessor(1) : BI->getSuccessor(0);
lib/Transforms/Scalar/LoopUnrollPass.cpp
  573               KnownSucc = BI->getSuccessor(0);
  576               KnownSucc = BI->getSuccessor(SimpleCondVal->isZero() ? 1 : 0);
lib/Transforms/Scalar/LoopUnswitch.cpp
  577             ? BInst->getSuccessor(1)
  578             : BInst->getSuccessor(0);
  954   auto *OldBranchSucc = OldBranch->getSuccessor(0);
 1095         CurrentBB = BI->getSuccessor(0);
 1097         CurrentBB = BI->getSuccessor(0);
 1099         CurrentBB = BI->getSuccessor(1);
 1144                                              BI->getSuccessor(0)))) {
 1147                                                     BI->getSuccessor(1)))) {
 1354   assert(OldBR->isUnconditional() && OldBR->getSuccessor(0) == LoopBlocks[0] &&
 1620         BasicBlock *Succ = BI->getSuccessor(0);
lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
   64       Target = BI->getSuccessor(1);
   65       Other = BI->getSuccessor(0);
   67       Target = BI->getSuccessor(0);
   68       Other = BI->getSuccessor(1);
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
  226     if (IsOpndComingFromSuccessor(BI->getSuccessor(1)))
  230     else if (IsOpndComingFromSuccessor(BI->getSuccessor(0)))
lib/Transforms/Scalar/MergeICmps.cpp
  382     BasicBlock *const FalseBlock = BranchI->getSuccessor(1);
lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
  146   BasicBlock *Succ0 = BI->getSuccessor(0);
  147   BasicBlock *Succ1 = BI->getSuccessor(1);
lib/Transforms/Scalar/SCCP.cpp
 1983       Dest = BI->getSuccessor(1);
 2154             !Solver.isBlockExecutable(BI->getSuccessor(0))) {
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  376   auto *LoopExitBB = BI.getSuccessor(0);
  380     LoopExitBB = BI.getSuccessor(1);
  384   auto *ContinueBB = BI.getSuccessor(1 - LoopExitSuccIdx);
  906       CurrentBB = BI->getSuccessor(0);
  936     CurrentBB = BI->getSuccessor(0);
 1945       BI ? BI->getSuccessor(1 - ClonedSucc) : SI->getDefaultDest();
 1948     UnswitchedSuccBBs.insert(BI->getSuccessor(ClonedSucc));
 2399   BasicBlock *GuardedBlock = CheckBI->getSuccessor(0);
 2401   CheckBI->getSuccessor(1)->setName("deopt");
 2402   BasicBlock *DeoptBlock = CheckBI->getSuccessor(1);
 2405   ExitBlocks.push_back(CheckBI->getSuccessor(1));
 2566         BI->getSuccessor(0) == BI->getSuccessor(1))
 2566         BI->getSuccessor(0) == BI->getSuccessor(1))
 2690           if (SuccBB == BI.getSuccessor(1))
 2697           if (SuccBB == BI.getSuccessor(0))
lib/Transforms/Scalar/SpeculativeExecution.cpp
  174   BasicBlock &Succ0 = *BI->getSuccessor(0);
  175   BasicBlock &Succ1 = *BI->getSuccessor(1);
lib/Transforms/Scalar/StructurizeCFG.cpp
  465         BasicBlock *Succ = Term->getSuccessor(i);
  473             BasicBlock *Other = Term->getSuccessor(!i);
  545     BasicBlock *SuccTrue = Term->getSuccessor(0);
  546     BasicBlock *SuccFalse = Term->getSuccessor(1);
lib/Transforms/Utils/BasicBlockUtils.cpp
  203     NewSucc = BB_JmpI->getSuccessor(0);
  204     FallThruPath = PredBB_BI->getSuccessor(0) == BB ? 0 : 1;
  935     if (Pred1Br->getSuccessor(0) == BB &&
  936         Pred1Br->getSuccessor(1) == Pred2) {
  939     } else if (Pred1Br->getSuccessor(0) == Pred2 &&
  940                Pred1Br->getSuccessor(1) == BB) {
  964   if (BI->getSuccessor(0) == Pred1) {
lib/Transforms/Utils/CloneFunction.cpp
  397         BasicBlock *Dest = BI->getSuccessor(!Cond->getZExtValue());
  683     BasicBlock *Dest = BI->getSuccessor(0);
lib/Transforms/Utils/Evaluator.cpp
  612           NextBB = BI->getSuccessor(0);
  618           NextBB = BI->getSuccessor(!Cond->getZExtValue());
lib/Transforms/Utils/FlattenCFG.cpp
  206     BasicBlock *PS1 = PBI->getSuccessor(0);
  207     BasicBlock *PS2 = PBI->getSuccessor(1);
  287     CB = PBI->getSuccessor(1 - Idx);
lib/Transforms/Utils/GuardUtils.cpp
   41   CheckBI->getSuccessor(0)->setName("guarded");
   42   CheckBI->getSuccessor(1)->setName("deopt");
lib/Transforms/Utils/InlineFunction.cpp
 2391   BasicBlock *CalleeEntry = cast<BranchInst>(Br)->getSuccessor(0);
lib/Transforms/Utils/Local.cpp
  118     BasicBlock *Dest1 = BI->getSuccessor(0);
  119     BasicBlock *Dest2 = BI->getSuccessor(1);
  955   BasicBlock *Succ = cast<BranchInst>(BB->getTerminator())->getSuccessor(0);
lib/Transforms/Utils/LoopRotationUtils.cpp
  281   BasicBlock *Exit = BI->getSuccessor(0);
  282   BasicBlock *NewHeader = BI->getSuccessor(1);
  447       PHBI->getSuccessor(cast<ConstantInt>(PHBI->getCondition())->isZero()) !=
lib/Transforms/Utils/LoopSimplify.cpp
  529                                             !L->contains(BI->getSuccessor(0))));
  689       BI->getSuccessor(0)->removePredecessor(
  691       BI->getSuccessor(1)->removePredecessor(
lib/Transforms/Utils/LoopUnroll.cpp
  318     return BI->isConditional() && BI->getSuccessor(S1) == Header &&
  319            !L->contains(BI->getSuccessor(S2));
  332            L->contains(HeaderBI->getSuccessor(S1)) &&
  333            !L->contains(HeaderBI->getSuccessor(S2));
  534     ContinueOnTrue = L->contains(BI->getSuccessor(0));
  535     LoopExit = BI->getSuccessor(ContinueOnTrue);
  538     ContinueOnTrue = L->contains(HeaderBI->getSuccessor(0));
  539     LoopExit = HeaderBI->getSuccessor(ContinueOnTrue);
  558     if (Term->isUnconditional() || L->contains(Term->getSuccessor(0))) {
  559       assert(L->contains(Term->getSuccessor(0)));
  560       HeaderSucc.push_back(Term->getSuccessor(0));
  562       assert(L->contains(Term->getSuccessor(1)));
  563       HeaderSucc.push_back(Term->getSuccessor(1));
  882       BasicBlock *Dest = Term->getSuccessor(0);
lib/Transforms/Utils/LoopUnrollAndJam.cpp
  253   bool ContinueOnTrue = L->contains(BI->getSuccessor(0));
  254   BasicBlock *LoopExit = BI->getSuccessor(ContinueOnTrue);
  545     if (Term && Term->isUnconditional() && L->contains(Term->getSuccessor(0))) {
  546       BasicBlock *Dest = Term->getSuccessor(0);
lib/Transforms/Utils/LoopUnrollPeel.cpp
  408   unsigned HeaderIdx = (LatchBR->getSuccessor(0) == Header ? 0 : 1);
  430   unsigned HeaderIdx = LatchBR->getSuccessor(0) == Header ? 0 : 1;
  451   unsigned HeaderIdx = LatchBR->getSuccessor(0) == Header ? 0 : 1;
  520     if (LatchBR->getSuccessor(idx) == Header) {
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  577   unsigned ExitIndex = LatchBR->getSuccessor(0) == Header ? 1 : 0;
  578   BasicBlock *LatchExit = LatchBR->getSuccessor(ExitIndex);
  904     if (LatchBR->getSuccessor(0) == Header)
lib/Transforms/Utils/LoopUtils.cpp
  691   assert((LatchBR->getSuccessor(0) == L->getHeader() ||
  692           LatchBR->getSuccessor(1) == L->getHeader()) &&
  714   if (LatchBR->getSuccessor(0) == L->getHeader())
lib/Transforms/Utils/PredicateInfo.cpp
  393   BasicBlock *FirstBB = BI->getSuccessor(0);
  394   BasicBlock *SecondBB = BI->getSuccessor(1);
  499       if (BI->getSuccessor(0) == BI->getSuccessor(1))
  499       if (BI->getSuccessor(0) == BI->getSuccessor(1))
lib/Transforms/Utils/SimplifyCFG.cpp
  371   if (!BI || BI->isConditional() || BI->getSuccessor(0) != BB)
  738   BasicBlock *Succ = BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_NE);
  741   return BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_EQ);
 1244   BasicBlock *BB1 = BI->getSuccessor(0); // The true destination.
 1245   BasicBlock *BB2 = BI->getSuccessor(1); // The false destination
 1969   if (ThenBB != BI->getSuccessor(0)) {
 1970     assert(ThenBB == BI->getSuccessor(1) && "No edge from 'if' block?");
 1973   assert(EndBB == BI->getSuccessor(!Invert) && "No edge from to end block");
 2210     BasicBlock *RealDest = BI->getSuccessor(!CB->getZExtValue());
 2448   BasicBlock *TrueSucc = BI->getSuccessor(0);
 2449   BasicBlock *FalseSucc = BI->getSuccessor(1);
 2590             (BI->getSuccessor(0) == PBI->getSuccessor(0) ||
 2590             (BI->getSuccessor(0) == PBI->getSuccessor(0) ||
 2591              BI->getSuccessor(0) == PBI->getSuccessor(1))) {
 2591              BI->getSuccessor(0) == PBI->getSuccessor(1))) {
 2663   BasicBlock *TrueDest = BI->getSuccessor(0);
 2664   BasicBlock *FalseDest = (BI->isConditional()) ? BI->getSuccessor(1) : nullptr;
 2687       if (PBI->getSuccessor(0) == TrueDest) {
 2689       } else if (PBI->getSuccessor(1) == FalseDest) {
 2691       } else if (PBI->getSuccessor(0) == FalseDest) {
 2694       } else if (PBI->getSuccessor(1) == TrueDest) {
 2701       if (PBI->getSuccessor(0) != TrueDest && PBI->getSuccessor(1) != TrueDest)
 2701       if (PBI->getSuccessor(0) != TrueDest && PBI->getSuccessor(1) != TrueDest)
 2771       if (PBI->getSuccessor(0) == BB) {
 2788       if (PBI->getSuccessor(1) == BB) {
 2819         if (PBI->getSuccessor(0) == TrueDest) {
 3137   BasicBlock *PTB = PBI->getSuccessor(0);
 3138   BasicBlock *PFB = PBI->getSuccessor(1);
 3139   BasicBlock *QTB = QBI->getSuccessor(0);
 3140   BasicBlock *QFB = QBI->getSuccessor(1);
 3229       PBI->getSuccessor(0) != PBI->getSuccessor(1)) {
 3229       PBI->getSuccessor(0) != PBI->getSuccessor(1)) {
 3234       bool CondIsTrue = PBI->getSuccessor(0) == BB;
 3255             PBI->getSuccessor(0) != PBI->getSuccessor(1)) {
 3255             PBI->getSuccessor(0) != PBI->getSuccessor(1)) {
 3256           bool CondIsTrue = PBI->getSuccessor(0) == BB;
 3289   if (PBI->getSuccessor(0) == BI->getSuccessor(0)) {
 3289   if (PBI->getSuccessor(0) == BI->getSuccessor(0)) {
 3292   } else if (PBI->getSuccessor(0) == BI->getSuccessor(1)) {
 3292   } else if (PBI->getSuccessor(0) == BI->getSuccessor(1)) {
 3295   } else if (PBI->getSuccessor(1) == BI->getSuccessor(0)) {
 3295   } else if (PBI->getSuccessor(1) == BI->getSuccessor(0)) {
 3298   } else if (PBI->getSuccessor(1) == BI->getSuccessor(1)) {
 3298   } else if (PBI->getSuccessor(1) == BI->getSuccessor(1)) {
 3308   if (PBI->getSuccessor(PBIOp) == BB)
 3319   BasicBlock *CommonDest = PBI->getSuccessor(PBIOp);
 3340   BasicBlock *OtherDest = BI->getSuccessor(BIOp ^ 1);
 3734   BasicBlock *DefaultBB = BI->getSuccessor(1);
 3735   BasicBlock *EdgeBB = BI->getSuccessor(0);
 4154     if (isa<ReturnInst>(BI->getSuccessor(0)->getTerminator()) &&
 4155         isa<ReturnInst>(BI->getSuccessor(1)->getTerminator()) &&
 4227         assert(BI->getSuccessor(0) == BB && "Incorrect CFG");
 4233         if (BI->getSuccessor(0) == BB) {
 4235           Builder.CreateBr(BI->getSuccessor(1));
 4237           assert(BI->getSuccessor(1) == BB && "Incorrect CFG");
 4239           Builder.CreateBr(BI->getSuccessor(0));
 4528   BasicBlock *Succ = Branch->getSuccessor(0);
 5802   BasicBlock *Succ = BI->getSuccessor(0);
 5915   if (BI->getSuccessor(0)->getSinglePredecessor()) {
 5916     if (BI->getSuccessor(1)->getSinglePredecessor()) {
 5922       Instruction *Succ0TI = BI->getSuccessor(0)->getTerminator();
 5924           Succ0TI->getSuccessor(0) == BI->getSuccessor(1))
 5925         if (SpeculativelyExecuteBB(BI, BI->getSuccessor(0), TTI))
 5928   } else if (BI->getSuccessor(1)->getSinglePredecessor()) {
 5931     Instruction *Succ1TI = BI->getSuccessor(1)->getTerminator();
 5933         Succ1TI->getSuccessor(0) == BI->getSuccessor(0))
 5934       if (SpeculativelyExecuteBB(BI, BI->getSuccessor(1), TTI))
 6030             Builder.CreateBr(BI->getSuccessor(0) == BB ? BI->getSuccessor(1)
 6030             Builder.CreateBr(BI->getSuccessor(0) == BB ? BI->getSuccessor(1)
 6031                                                        : BI->getSuccessor(0));
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  452         !LI->isLoopHeader(Br->getSuccessor(0)) &&
  453         !LI->isLoopHeader(Br->getSuccessor(1))) {
lib/Transforms/Vectorize/LoopVectorize.cpp
 6114         (PredicatedBBsAfterVectorization.find(BI->getSuccessor(0)) !=
 6116          PredicatedBBsAfterVectorization.find(BI->getSuccessor(1)) !=
 6663   if (BI->getSuccessor(0) != Dst)
tools/clang/lib/CodeGen/CGCleanup.cpp
  370       llvm::SwitchInst::Create(Load, Br->getSuccessor(0), 4, Block);
  528   assert(Br->getSuccessor(0) == Entry);
  588     assert(Br->isUnconditional() && Br->getSuccessor(0) == From);
tools/clang/lib/CodeGen/CGException.cpp
 1255       RethrowBlock = BI->getSuccessor(1);
tools/clang/lib/CodeGen/CGStmt.cpp
  460   BB->replaceAllUsesWith(BI->getSuccessor(0));
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  268         BI->getSuccessor(0) == ReturnBlock.getBlock()) {
tools/lldb/source/Expression/IRInterpreter.cpp
  955           frame.Jump(br_inst->getSuccessor(0));
  957           frame.Jump(br_inst->getSuccessor(1));
  965         frame.Jump(br_inst->getSuccessor(0));
tools/llvm-diff/DifferenceEngine.cpp
  300         if (TryUnify) tryUnify(LI->getSuccessor(1), RI->getSuccessor(1));
  300         if (TryUnify) tryUnify(LI->getSuccessor(1), RI->getSuccessor(1));
  302       if (TryUnify) tryUnify(LI->getSuccessor(0), RI->getSuccessor(0));
  302       if (TryUnify) tryUnify(LI->getSuccessor(0), RI->getSuccessor(0));
tools/polly/lib/Analysis/ScopBuilder.cpp
  757       int idx = BI->getSuccessor(0) != HeaderBB;
tools/polly/lib/CodeGen/BlockGenerators.cpp
  637   BasicBlock *ThenBlock = Branch->getSuccessor(0);
  638   BasicBlock *TailBlock = Branch->getSuccessor(1);
unittests/FuzzMutate/OperationsTest.cpp
  192   auto *BB1 = UncondBr->getSuccessor(0);
  205   ASSERT_THAT(CondBr->getSuccessor(0), Eq(BB1));
  206   auto *BB2 = CondBr->getSuccessor(1);
unittests/IR/InstructionsTest.cpp
  163   EXPECT_EQ(bb1, b1->getSuccessor(1));
  169   EXPECT_EQ(bb0, b1->getSuccessor(0));