Lines Matching refs:OnlyPred
106 BasicBlock *OnlyPred = BB->getSinglePredecessor(); in foldBlockIntoPredecessor() local
107 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()
154 return OnlyPred; in foldBlockIntoPredecessor()