Lines Matching refs:CondBranch
660 MCInst *CondBranch = nullptr; in fixDoubleJumps() local
662 bool Res = Pred->analyzeBranch(TBB, FBB, CondBranch, UncondBranch); in fixDoubleJumps()
672 assert((CondBranch || (!CondBranch && Pred->succ_size() == 1)) && in fixDoubleJumps()
674 if (CondBranch && MIB->getTargetSymbol(*CondBranch) == BB.getLabel()) { in fixDoubleJumps()
675 MIB->replaceBranchTarget(*CondBranch, Succ->getLabel(), Ctx); in fixDoubleJumps()
746 const BinaryBasicBlock *PredBB, const MCInst &CondBranch, in shouldRewriteBranch() argument
827 MCInst *CondBranch = nullptr; in fixTailCalls() local
829 bool Result = PredBB->analyzeBranch(TBB, FBB, CondBranch, UncondBranch); in fixTailCalls()
839 assert(CondBranch && "conditional branch expected"); in fixTailCalls()
854 if (!shouldRewriteBranch(PredBB, *CondBranch, BB, DirectionFlag)) in fixTailCalls()
863 MIB->reverseBranchCondition(*CondBranch, CalleeSymbol, Ctx); in fixTailCalls()
872 MIB->replaceBranchTarget(*CondBranch, CalleeSymbol, Ctx); in fixTailCalls()
879 MIB->setConditionalTailCall(*CondBranch); in fixTailCalls()
883 MIB->getOrCreateAnnotationAs<uint64_t>(*CondBranch, "CTCTakenCount"); in fixTailCalls()
912 MCInst *CondBranch = nullptr; in fixTailCalls() local
914 PredBB->analyzeBranch(TBB, FBB, CondBranch, UncondBranch); in fixTailCalls()
1060 MCInst *CondBranch = nullptr; in removeUselessCondBranches() local
1062 bool Result = BB.analyzeBranch(TBB, FBB, CondBranch, UncondBranch); in removeUselessCondBranches()
1066 if (!Result || !CondBranch) in removeUselessCondBranches()
1069 BB.removeDuplicateConditionalSuccessor(CondBranch); in removeUselessCondBranches()