Lines Matching refs:OrigBB
664 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, in UpdatePHINodes() argument
669 for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) { in UpdatePHINodes()
818 void llvm::SplitLandingPadPredecessors(BasicBlock *OrigBB, in SplitLandingPadPredecessors() argument
825 assert(OrigBB->isLandingPad() && "Trying to split a non-landing pad!"); in SplitLandingPadPredecessors()
829 BasicBlock *NewBB1 = BasicBlock::Create(OrigBB->getContext(), in SplitLandingPadPredecessors()
830 OrigBB->getName() + Suffix1, in SplitLandingPadPredecessors()
831 OrigBB->getParent(), OrigBB); in SplitLandingPadPredecessors()
835 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors()
836 BI1->setDebugLoc(OrigBB->getFirstNonPHI()->getDebugLoc()); in SplitLandingPadPredecessors()
845 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); in SplitLandingPadPredecessors()
849 UpdateAnalysisInformation(OrigBB, NewBB1, Preds, DT, LI, MSSAU, PreserveLCSSA, in SplitLandingPadPredecessors()
853 UpdatePHINodes(OrigBB, NewBB1, Preds, BI1, HasLoopExit); in SplitLandingPadPredecessors()
857 for (pred_iterator i = pred_begin(OrigBB), e = pred_end(OrigBB); in SplitLandingPadPredecessors()
864 e = pred_end(OrigBB); in SplitLandingPadPredecessors()
870 NewBB2 = BasicBlock::Create(OrigBB->getContext(), in SplitLandingPadPredecessors()
871 OrigBB->getName() + Suffix2, in SplitLandingPadPredecessors()
872 OrigBB->getParent(), OrigBB); in SplitLandingPadPredecessors()
876 BranchInst *BI2 = BranchInst::Create(OrigBB, NewBB2); in SplitLandingPadPredecessors()
877 BI2->setDebugLoc(OrigBB->getFirstNonPHI()->getDebugLoc()); in SplitLandingPadPredecessors()
881 NewBB2Pred->getTerminator()->replaceUsesOfWith(OrigBB, NewBB2); in SplitLandingPadPredecessors()
885 UpdateAnalysisInformation(OrigBB, NewBB2, NewBB2Preds, DT, LI, MSSAU, in SplitLandingPadPredecessors()
889 UpdatePHINodes(OrigBB, NewBB2, NewBB2Preds, BI2, HasLoopExit); in SplitLandingPadPredecessors()
892 LandingPadInst *LPad = OrigBB->getLandingPadInst(); in SplitLandingPadPredecessors()