Searched refs:OnlyPred (Results 1 – 2 of 2) sorted by relevance
106 BasicBlock *OnlyPred = BB->getSinglePredecessor(); in foldBlockIntoPredecessor() local107 if (!OnlyPred) return nullptr; in foldBlockIntoPredecessor()109 if (OnlyPred->getTerminator()->getNumSuccessors() != 1) in foldBlockIntoPredecessor()113 << OnlyPred->getName() << "\n"); in foldBlockIntoPredecessor()123 OnlyPred->getInstList().pop_back(); in foldBlockIntoPredecessor()127 BB->replaceAllUsesWith(OnlyPred); in foldBlockIntoPredecessor()130 OnlyPred->getInstList().splice(OnlyPred->end(), BB->getInstList()); in foldBlockIntoPredecessor()138 DomTreeNode *PredDTN = DT->getNode(OnlyPred); in foldBlockIntoPredecessor()149 if (!OldName.empty() && !OnlyPred->hasName()) in foldBlockIntoPredecessor()150 OnlyPred->setName(OldName); in foldBlockIntoPredecessor()[all …]
5594 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in SimplifySwitch() local5595 if (SimplifyEqualityComparisonWithOnlyPredecessor(SI, OnlyPred, Builder)) in SimplifySwitch()5826 if (BasicBlock *OnlyPred = BB->getSinglePredecessor()) in SimplifyCondBranch() local5827 if (SimplifyEqualityComparisonWithOnlyPredecessor(BI, OnlyPred, Builder)) in SimplifyCondBranch()