Searched refs:OnlyPred (Results 1 – 2 of 2) sorted by relevance
81 BasicBlock *OnlyPred = BB->getSinglePredecessor(); in FoldBlockIntoPredecessor() local82 if (!OnlyPred) return nullptr; in FoldBlockIntoPredecessor()84 if (OnlyPred->getTerminator()->getNumSuccessors() != 1) in FoldBlockIntoPredecessor()87 DEBUG(dbgs() << "Merging: " << *BB << "into: " << *OnlyPred); in FoldBlockIntoPredecessor()97 OnlyPred->getInstList().pop_back(); in FoldBlockIntoPredecessor()101 BB->replaceAllUsesWith(OnlyPred); in FoldBlockIntoPredecessor()104 OnlyPred->getInstList().splice(OnlyPred->end(), BB->getInstList()); in FoldBlockIntoPredecessor()123 if (!OldName.empty() && !OnlyPred->hasName()) in FoldBlockIntoPredecessor()124 OnlyPred->setName(OldName); in FoldBlockIntoPredecessor()128 return OnlyPred; in FoldBlockIntoPredecessor()
4275 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in SimplifySwitch() local4276 if (SimplifyEqualityComparisonWithOnlyPredecessor(SI, OnlyPred, Builder)) in SimplifySwitch()4479 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in SimplifyCondBranch() local4480 if (SimplifyEqualityComparisonWithOnlyPredecessor(BI, OnlyPred, Builder)) in SimplifyCondBranch()