Lines Matching refs:NewBB

254   MachineBasicBlock *NewBB = MF->CreateMachineBasicBlock(BB);
255 MF->insert(++OrigMBB.getIterator(), NewBB);
258 NewBB->setSectionID(OrigMBB.getSectionID());
259 NewBB->setIsEndSection(OrigMBB.isEndSection());
263 BlockInfo.insert(BlockInfo.begin() + NewBB->getNumber(), BasicBlockInfo());
265 return NewBB;
277 MachineBasicBlock *NewBB =
279 MF->insert(++OrigBB->getIterator(), NewBB);
282 NewBB->setSectionID(OrigBB->getSectionID());
283 NewBB->setIsEndSection(OrigBB->isEndSection());
286 // Splice the instructions starting with MI over to NewBB.
287 NewBB->splice(NewBB->end(), OrigBB, MI.getIterator(), OrigBB->end());
289 // Add an unconditional branch from OrigBB to NewBB.
293 TII->insertUnconditionalBranch(*OrigBB, NewBB, DebugLoc());
296 BlockInfo.insert(BlockInfo.begin() + NewBB->getNumber(), BasicBlockInfo());
298 NewBB->transferSuccessors(OrigBB);
299 OrigBB->addSuccessor(NewBB);
304 OrigBB->updateTerminator(NewBB);
315 BlockInfo[NewBB->getNumber()].Size = computeBlockSize(*NewBB);
322 computeAndAddLiveIns(LiveRegs, *NewBB);
326 return NewBB;
360 MachineBasicBlock *NewBB = nullptr;
386 MachineBasicBlock *NewBB) {
391 if (NewBB && TRI->trackLivenessAfterRegAlloc(*MF))
392 computeAndAddLiveIns(LiveRegs, *NewBB);
413 NewBB =
416 if (isBlockInRange(MI, *NewBB)) {
418 << NewBB->back());
420 insertUncondBranch(NewBB, TBB);
423 MBB->replaceSuccessor(TBB, NewBB);
424 NewBB->addSuccessor(TBB);
428 insertBranch(MBB, NewBB, FBB, Cond);
430 TrampolineInsertionPoint = NewBB;
431 finalizeBlockChanges(MBB, NewBB);
439 TrampolineInsertionPoint->setIsEndSection(NewBB->isEndSection());
440 MF->erase(NewBB);
473 NewBB = createNewBlockAfter(*MBB);
475 insertUncondBranch(NewBB, FBB);
478 MBB->replaceSuccessor(FBB, NewBB);
479 NewBB->addSuccessor(FBB);
494 finalizeBlockChanges(MBB, NewBB);
510 // beq NewBB
512 // NewBB:
516 NewBB = createNewBlockAfter(*MBB);
517 insertUncondBranch(NewBB, TBB);
520 << printMBBReference(*NewBB)
527 MBB->replaceSuccessor(TBB, NewBB);
528 NewBB->addSuccessor(TBB);
532 insertBranch(MBB, NewBB, FBB, Cond);
534 finalizeBlockChanges(MBB, NewBB);
601 MachineBasicBlock *NewBB = createNewBlockAfter(*TrampolineInsertionPoint);
602 TII->insertUnconditionalBranch(*NewBB, DestBB, DebugLoc());
603 BlockInfo[NewBB->getNumber()].Size = computeBlockSize(*NewBB);
605 // New trampolines should be inserted after NewBB.
606 TrampolineInsertionPoint = NewBB;
609 BranchBB->replaceSuccessor(DestBB, NewBB);
610 NewBB->addSuccessor(DestBB);
612 DestBB = NewBB;