Lines Matching refs:DestBB

104                                            MachineBasicBlock *DestBB);
152 MachineBasicBlock *DestBB = TII->getBranchDestBlock(MI); in INITIALIZE_PASS() local
153 assert(isBlockInRange(MI, *DestBB) || in INITIALIZE_PASS()
154 RelaxedUnconditionals.contains({&MBB, DestBB})); in INITIALIZE_PASS()
273 MachineBasicBlock *DestBB) { in splitBlockBeforeInstr() argument
300 OrigBB->addSuccessor(DestBB); in splitBlockBeforeInstr()
332 const MachineInstr &MI, const MachineBasicBlock &DestBB) const { in isBlockInRange()
334 int64_t DestOffset = BlockInfo[DestBB.getNumber()].Offset; in isBlockInRange()
339 SrcBB->getSectionID() != DestBB.getSectionID() in isBlockInRange()
345 << printMBBReference(DestBB) << " from " in isBlockInRange()
364 MachineBasicBlock *DestBB) { in fixupConditionalBranch() argument
367 TII->insertUnconditionalBranch(*MBB, DestBB, DL, &NewBrSize); in fixupConditionalBranch()
542 MachineBasicBlock *DestBB = TII->getBranchDestBlock(MI); in fixupUnconditionalBranch() local
544 int64_t DestOffset = BlockInfo[DestBB->getNumber()].Offset; in fixupUnconditionalBranch()
548 MI.getOpcode(), MBB->getSectionID() != DestBB->getSectionID() in fixupUnconditionalBranch()
568 BranchBB->addSuccessor(DestBB); in fixupUnconditionalBranch()
569 MBB->replaceSuccessor(DestBB, BranchBB); in fixupUnconditionalBranch()
581 DestBB->getBasicBlock()); in fixupUnconditionalBranch()
586 TII->insertIndirectBranch(*BranchBB, *DestBB, *RestoreBB, DL, in fixupUnconditionalBranch()
587 BranchBB->getSectionID() != DestBB->getSectionID() in fixupUnconditionalBranch()
600 DestBB->getSectionID() != MBBSectionID::ColdSectionID) { in fixupUnconditionalBranch()
602 TII->insertUnconditionalBranch(*NewBB, DestBB, DebugLoc()); in fixupUnconditionalBranch()
609 BranchBB->replaceSuccessor(DestBB, NewBB); in fixupUnconditionalBranch()
610 NewBB->addSuccessor(DestBB); in fixupUnconditionalBranch()
612 DestBB = NewBB; in fixupUnconditionalBranch()
621 assert(!DestBB->isEntryBlock()); in fixupUnconditionalBranch()
622 MachineBasicBlock *PrevBB = &*std::prev(DestBB->getIterator()); in fixupUnconditionalBranch()
626 assert(FT == DestBB); in fixupUnconditionalBranch()
631 MF->splice(DestBB->getIterator(), RestoreBB->getIterator()); in fixupUnconditionalBranch()
633 RestoreBB->addSuccessor(DestBB); in fixupUnconditionalBranch()
634 BranchBB->replaceSuccessor(DestBB, RestoreBB); in fixupUnconditionalBranch()
643 RestoreBB->setSectionID(DestBB->getSectionID()); in fixupUnconditionalBranch()
644 RestoreBB->setIsBeginSection(DestBB->isBeginSection()); in fixupUnconditionalBranch()
645 DestBB->setIsBeginSection(false); in fixupUnconditionalBranch()
650 RelaxedUnconditionals.insert({BranchBB, DestBB}); in fixupUnconditionalBranch()
675 if (MachineBasicBlock *DestBB = TII->getBranchDestBlock(*Last)) { in relaxBranchInstructions() local
676 if (!isBlockInRange(*Last, *DestBB) && !TII->isTailCall(*Last) && in relaxBranchInstructions()
677 !RelaxedUnconditionals.contains({&MBB, DestBB})) { in relaxBranchInstructions()
700 MachineBasicBlock *DestBB = TII->getBranchDestBlock(MI); in relaxBranchInstructions() local
701 if (!isBlockInRange(MI, *DestBB)) { in relaxBranchInstructions()
707 splitBlockBeforeInstr(*Next, DestBB); in relaxBranchInstructions()