Home
last modified time | relevance | path

Searched refs:PBI (Results 1 – 3 of 3) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DFlattenCFG.cpp139 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()
[all …]
DSimplifyCFG.cpp2061 Instruction *PBI = &*I; in checkCSEInPredecessor() local
2063 if (Inst->isIdenticalTo(PBI)) { in checkCSEInPredecessor()
2064 Inst->replaceAllUsesWith(PBI); in checkCSEInPredecessor()
2087 if (BranchInst *PBI = dyn_cast<BranchInst>(PB->getTerminator())) in FoldBranchToCommonDest() local
2088 if (PBI->isConditional() && in FoldBranchToCommonDest()
2089 (BI->getSuccessor(0) == PBI->getSuccessor(0) || in FoldBranchToCommonDest()
2090 BI->getSuccessor(0) == PBI->getSuccessor(1))) { in FoldBranchToCommonDest()
2163 BranchInst *PBI = dyn_cast<BranchInst>(PredBlock->getTerminator()); in FoldBranchToCommonDest() local
2169 if (!PBI || PBI->isUnconditional() || in FoldBranchToCommonDest()
2171 !SafeToMergeTerminators(BI, PBI)) || in FoldBranchToCommonDest()
[all …]
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp901 auto *PBI = dyn_cast<BranchInst>(CurrentPred->getTerminator()); in ProcessImpliedCondition() local
902 if (!PBI || !PBI->isConditional() || PBI->getSuccessor(0) != CurrentBB) in ProcessImpliedCondition()
905 if (isImpliedCondition(PBI->getCondition(), Cond, DL)) { in ProcessImpliedCondition()