Lines Matching defs:DestBB
357 BasicBlock *DestBB = IBI->getDestination(i);
358 if (DTU && DestBB != TheOnlyDest)
359 RemovedSuccessors.insert(DestBB);
363 DestBB->removePredecessor(BB);
777 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB,
781 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) {
789 BasicBlock *PredBB = DestBB->getSinglePredecessor();
795 // PredBB. These dominator edges will be redirected to DestBB.
803 // This predecessor of PredBB may already have DestBB as a successor.
806 Updates.push_back({DominatorTree::Insert, PredOfPredBB, DestBB});
811 Updates.push_back({DominatorTree::Delete, PredBB, DestBB});
814 // Zap anything that took the address of DestBB. Not doing this will give the
816 if (DestBB->hasAddressTaken()) {
817 BlockAddress *BA = BlockAddress::get(DestBB);
825 // Anything that branched to PredBB now branches to DestBB.
826 PredBB->replaceAllUsesWith(DestBB);
828 // Splice all the instructions from PredBB to DestBB.
830 DestBB->splice(DestBB->begin(), PredBB);
833 // If the PredBB is the entry block of the function, move DestBB up to
836 DestBB->moveAfter(PredBB);
851 DTU->recalculate(*(DestBB->getParent()));