Lines Matching defs:UnwindDest
5158 // set UnwindDest to nullptr.
5159 BasicBlock *UnwindDest = RI->getUnwindDest();
5160 Instruction *DestEHPad = UnwindDest ? UnwindDest->getFirstNonPHI() : nullptr;
5165 // be certain that UnwindDest and BB have no common predecessors (since they
5167 if (UnwindDest) {
5168 // First, go through the PHI nodes in UnwindDest and update any nodes that
5170 for (PHINode &DestPN : UnwindDest->phis()) {
5172 // Since BB unwinds to UnwindDest, it has to be in the PHI node.
5181 // Because BB and UnwindDest are both EH pads, all of their
5196 // Sink any remaining PHI nodes directly into UnwindDest.
5205 // Otherwise, sink this PHI node into UnwindDest.
5206 // Any predecessors to UnwindDest which are not already represented
5209 for (auto *pred : predecessors(UnwindDest))
5223 if (UnwindDest == nullptr) {
5233 TI->replaceUsesOfWith(BB, UnwindDest);
5235 Updates.push_back({DominatorTree::Insert, PredBB, UnwindDest});
5253 BasicBlock *UnwindDest = RI->getUnwindDest();
5254 if (!UnwindDest)
5259 if (UnwindDest->getSinglePredecessor() != RI->getParent())
5263 auto *SuccessorCleanupPad = dyn_cast<CleanupPadInst>(&UnwindDest->front());
5276 BranchInst::Create(UnwindDest, RI->getParent());