Lines Matching refs:PBI
139 BranchInst *PBI = dyn_cast<BranchInst>(Pred->getTerminator()); in FlattenParallelAndOr() local
142 if (!PBI) in FlattenParallelAndOr()
147 if (PBI->isUnconditional()) { in FlattenParallelAndOr()
162 assert(PBI->isConditional()); in FlattenParallelAndOr()
165 Value *PC = PBI->getCondition(); in FlattenParallelAndOr()
178 for (BasicBlock::iterator BI = Pred->begin(), BE = PBI->getIterator(); in FlattenParallelAndOr()
194 BasicBlock *PS1 = PBI->getSuccessor(0); in FlattenParallelAndOr()
195 BasicBlock *PS2 = PBI->getSuccessor(1); in FlattenParallelAndOr()
269 BranchInst *PBI = dyn_cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr() local
272 Value *PC = PBI->getCondition(); in FlattenParallelAndOr()
275 CB = PBI->getSuccessor(1 - Idx); in FlattenParallelAndOr()
280 PBI = cast<BranchInst>(FirstCondBlock->getTerminator()); in FlattenParallelAndOr()
281 Value *CC = PBI->getCondition(); in FlattenParallelAndOr()
283 Builder.SetInsertPoint(PBI); in FlattenParallelAndOr()
292 PBI->replaceUsesOfWith(CC, NC); in FlattenParallelAndOr()
437 BranchInst *PBI = dyn_cast<BranchInst>(FirstEntryBlock->getTerminator()); in MergeIfRegion() local
438 Value *CC = PBI->getCondition(); in MergeIfRegion()
441 Builder.SetInsertPoint(PBI); in MergeIfRegion()
443 PBI->replaceUsesOfWith(CC, NC); in MergeIfRegion()