Lines Matching refs:OnlyPred
68 BasicBlock *OnlyPred = BB->getSinglePredecessor();
69 if (!OnlyPred) return 0;
71 if (OnlyPred->getTerminator()->getNumSuccessors() != 1)
74 DEBUG(dbgs() << "Merging: " << *BB << "into: " << *OnlyPred);
80 // OnlyPred to OnlySucc.
84 OnlyPred->getInstList().pop_back();
88 BB->replaceAllUsesWith(OnlyPred);
91 OnlyPred->getInstList().splice(OnlyPred->end(), BB->getInstList());
108 if (!OldName.empty() && !OnlyPred->hasName())
109 OnlyPred->setName(OldName);
111 return OnlyPred;