Lines Matching refs:BI
198 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef() local
199 if (BI && BI->isConditional()) in handlePhiDef()
200 return BI; in handlePhiDef()
204 BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef()
205 if (!BI || BI->isUnconditional()) in handlePhiDef()
207 return BI; in handlePhiDef()
229 BranchInst *BI = GetDomConditional(i); in handlePhiDef() local
230 if (!BI) in handlePhiDef()
249 if (OpndIncomingBB == BI->getParent() && Succ == PhiDef->getParent()) in handlePhiDef()
262 if (IsOpndComingFromSuccessor(BI->getSuccessor(1))) in handlePhiDef()
263 BI->setMetadata(LLVMContext::MD_prof, in handlePhiDef()
267 else if (IsOpndComingFromSuccessor(BI->getSuccessor(0))) in handlePhiDef()
268 BI->setMetadata(LLVMContext::MD_prof, in handlePhiDef()
357 static bool handleBranchExpect(BranchInst &BI) { in handleBranchExpect() argument
358 if (BI.isUnconditional()) in handleBranchExpect()
361 return handleBrSelExpect<BranchInst>(BI); in handleBranchExpect()
369 if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) { in lowerExpectIntrinsic() local
370 if (handleBranchExpect(*BI)) in lowerExpectIntrinsic()