Lines Matching defs:BI
198 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator());
199 if (BI && BI->isConditional())
200 return BI;
204 BI = dyn_cast<BranchInst>(BB->getTerminator());
205 if (!BI || BI->isUnconditional())
207 return BI;
229 BranchInst *BI = GetDomConditional(i);
230 if (!BI)
236 // from a given successor of a branch instruction BI.
238 // 2) When the incoming block is BI's enclosing block and the
242 // comes from outgoing edge of BI that leads to Succ block.
249 if (OpndIncomingBB == BI->getParent() && Succ == PhiDef->getParent())
262 if (IsOpndComingFromSuccessor(BI->getSuccessor(1)))
263 BI->setMetadata(LLVMContext::MD_prof,
267 else if (IsOpndComingFromSuccessor(BI->getSuccessor(0)))
268 BI->setMetadata(LLVMContext::MD_prof,
357 static bool handleBranchExpect(BranchInst &BI) {
358 if (BI.isUnconditional())
361 return handleBrSelExpect<BranchInst>(BI);
369 if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) {
370 if (handleBranchExpect(*BI))