Lines Matching defs:OrigBB
253 BranchRelaxation::createNewBlockAfter(MachineBasicBlock &OrigBB) {
254 return createNewBlockAfter(OrigBB, OrigBB.getBasicBlock());
262 // Create a new MBB for the code after the OrigBB.
266 // Place the new block in the same section as OrigBB
283 MachineBasicBlock *OrigBB = MI.getParent();
285 // Create a new MBB for the code after the OrigBB.
287 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock());
288 MF->insert(++OrigBB->getIterator(), NewBB);
290 // Place the new block in the same section as OrigBB.
291 NewBB->setSectionID(OrigBB->getSectionID());
292 NewBB->setIsEndSection(OrigBB->isEndSection());
293 OrigBB->setIsEndSection(false);
296 NewBB->splice(NewBB->end(), OrigBB, MI.getIterator(), OrigBB->end());
298 // Add an unconditional branch from OrigBB to NewBB.
302 TII->insertUnconditionalBranch(*OrigBB, NewBB, DebugLoc());
307 NewBB->transferSuccessors(OrigBB);
308 OrigBB->addSuccessor(NewBB);
309 OrigBB->addSuccessor(DestBB);
313 OrigBB->updateTerminator(NewBB);
315 // Figure out how large the OrigBB is. As the first half of the original
320 BlockInfo[OrigBB->getNumber()].Size = computeBlockSize(*OrigBB);
327 adjustBlockOffsets(*OrigBB, std::next(NewBB->getIterator()));