Lines Matching refs:OnlyPred
88 BasicBlock *OnlyPred = BB->getSinglePredecessor(); in foldBlockIntoPredecessor() local
89 if (!OnlyPred) return nullptr; in foldBlockIntoPredecessor()
91 if (OnlyPred->getTerminator()->getNumSuccessors() != 1) in foldBlockIntoPredecessor()
94 DEBUG(dbgs() << "Merging: " << *BB << "into: " << *OnlyPred); in foldBlockIntoPredecessor()
104 OnlyPred->getInstList().pop_back(); in foldBlockIntoPredecessor()
108 BB->replaceAllUsesWith(OnlyPred); in foldBlockIntoPredecessor()
111 OnlyPred->getInstList().splice(OnlyPred->end(), BB->getInstList()); in foldBlockIntoPredecessor()
119 DomTreeNode *PredDTN = DT->getNode(OnlyPred); in foldBlockIntoPredecessor()
137 if (!OldName.empty() && !OnlyPred->hasName()) in foldBlockIntoPredecessor()
138 OnlyPred->setName(OldName); in foldBlockIntoPredecessor()
142 return OnlyPred; in foldBlockIntoPredecessor()