Lines Matching defs:CondBranch
708 MCInst *CondBranch = nullptr;
710 bool Res = Pred->analyzeBranch(TBB, FBB, CondBranch, UncondBranch);
720 assert((CondBranch || (!CondBranch && Pred->succ_size() == 1)) &&
722 if (CondBranch && MIB->getTargetSymbol(*CondBranch) == BB.getLabel()) {
723 MIB->replaceBranchTarget(*CondBranch, Succ->getLabel(), Ctx);
799 const BinaryBasicBlock *PredBB, const MCInst &CondBranch,
880 MCInst *CondBranch = nullptr;
882 bool Result = PredBB->analyzeBranch(TBB, FBB, CondBranch, UncondBranch);
892 assert(CondBranch && "conditional branch expected");
895 if (BF.getBinaryContext().MIB->isDynamicBranch(*CondBranch))
911 if (!shouldRewriteBranch(PredBB, *CondBranch, BB, DirectionFlag))
920 MIB->reverseBranchCondition(*CondBranch, CalleeSymbol, Ctx);
929 MIB->replaceBranchTarget(*CondBranch, CalleeSymbol, Ctx);
936 MIB->setConditionalTailCall(*CondBranch);
940 MIB->getOrCreateAnnotationAs<uint64_t>(*CondBranch, "CTCTakenCount");
946 MIB->setOffset(*CondBranch, *Offset);
974 MCInst *CondBranch = nullptr;
976 PredBB->analyzeBranch(TBB, FBB, CondBranch, UncondBranch);
1130 MCInst *CondBranch = nullptr;
1132 bool Result = BB.analyzeBranch(TBB, FBB, CondBranch, UncondBranch);
1136 if (!Result || !CondBranch)
1139 BB.removeDuplicateConditionalSuccessor(CondBranch);