• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/

Lines Matching refs:BI

665 static bool checkBiasedBranch(BranchInst *BI, Region *R,
669 if (!BI->isConditional())
672 if (!checkMDProf(BI->getMetadata(LLVMContext::MD_prof),
675 BasicBlock *IfThen = BI->getSuccessor(0);
676 BasicBlock *IfElse = BI->getSuccessor(1);
686 CHR_DEBUG(dbgs() << "BI " << *BI << " ");
781 auto *BI = dyn_cast<BranchInst>(Entry->getTerminator());
782 if (BI)
783 CHR_DEBUG(dbgs() << "BI.isConditional " << BI->isConditional() << "\n");
785 CHR_DEBUG(dbgs() << "BI null\n");
786 if (BI && BI->isConditional()) {
787 BasicBlock *S0 = BI->getSuccessor(0);
788 BasicBlock *S1 = BI->getSuccessor(1);
794 BI, R, TrueBiasedRegionsGlobal, FalseBiasedRegionsGlobal,
802 return OptimizationRemarkMissed(DEBUG_TYPE, "BranchNotBiased", BI)
987 CHR_DEBUG(dbgs() << "BI " << *Branch << "\n");
1049 auto *BI = cast<BranchInst>(RI.R->getEntry()->getTerminator());
1050 ConditionValues.insert(BI->getCondition());
1412 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator());
1415 bool IsHoistable = checkHoistValue(BI->getCondition(), InsertPoint, DT,
1512 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator());
1513 hoistValue(BI->getCondition(), HoistPoint, R, Scope->HoistStopMap,
1544 if (auto *BI = dyn_cast<BranchInst>(U)) {
1545 assert(BI->isConditional() && "Must be conditional");
1546 BI->swapSuccessors();
1674 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator());
1675 Value *V = BI->getCondition();
1895 auto *BI = cast<BranchInst>(R->getEntry()->getTerminator());
1903 BasicBlock *IfThen = BI->getSuccessor(1);
1904 BasicBlock *IfElse = BI->getSuccessor(0);
1916 Value *Cond = BI->getCondition();
1918 bool ConditionTrue = HotTarget == BI->getSuccessor(0);
1919 addToMergedCondition(ConditionTrue, Cond, BI, Scope, IRB,
1922 assert(ConditionTrue == (HotTarget == BI->getSuccessor(0)) &&
1927 BI->setCondition(NewCondition);