Lines Matching refs:NewBB2
541 // Move the remaining edges from OrigBB to point to NewBB2.
553 BasicBlock *NewBB2 = 0;
556 NewBB2 = BasicBlock::Create(OrigBB->getContext(),
559 NewBBs.push_back(NewBB2);
562 BranchInst *BI2 = BranchInst::Create(OrigBB, NewBB2);
564 // Move the remaining edges from OrigBB to point to NewBB2.
567 (*i)->getTerminator()->replaceUsesOfWith(OrigBB, NewBB2);
571 UpdateAnalysisInformation(OrigBB, NewBB2, NewBB2Preds, P, HasLoopExit);
573 // Update the PHI nodes in OrigBB with the values coming from NewBB2.
574 UpdatePHINodes(OrigBB, NewBB2, NewBB2Preds, BI2, P, HasLoopExit);
582 if (NewBB2) {
585 NewBB2->getInstList().insert(NewBB2->getFirstInsertionPt(), Clone2);
590 PN->addIncoming(Clone2, NewBB2);