Lines Matching refs:BI
191 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef() local
192 if (BI && BI->isConditional()) in handlePhiDef()
193 return BI; in handlePhiDef()
197 BI = dyn_cast<BranchInst>(BB->getTerminator()); in handlePhiDef()
198 if (!BI || BI->isUnconditional()) in handlePhiDef()
200 return BI; in handlePhiDef()
219 BranchInst *BI = GetDomConditional(i); in handlePhiDef() local
220 if (!BI) in handlePhiDef()
239 if (OpndIncomingBB == BI->getParent() && Succ == PhiDef->getParent()) in handlePhiDef()
250 if (IsOpndComingFromSuccessor(BI->getSuccessor(1))) in handlePhiDef()
251 BI->setMetadata(LLVMContext::MD_prof, in handlePhiDef()
254 else if (IsOpndComingFromSuccessor(BI->getSuccessor(0))) in handlePhiDef()
255 BI->setMetadata(LLVMContext::MD_prof, in handlePhiDef()
343 static bool handleBranchExpect(BranchInst &BI) { in handleBranchExpect() argument
344 if (BI.isUnconditional()) in handleBranchExpect()
347 return handleBrSelExpect<BranchInst>(BI); in handleBranchExpect()
355 if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) { in lowerExpectIntrinsic() local
356 if (handleBranchExpect(*BI)) in lowerExpectIntrinsic()