Lines Matching refs:CurMBB
397 void BranchFolder::MaintainLiveIns(MachineBasicBlock *CurMBB, in MaintainLiveIns() argument
400 RS->enterBasicBlock(CurMBB); in MaintainLiveIns()
401 if (!CurMBB->empty()) in MaintainLiveIns()
402 RS->forward(std::prev(CurMBB->end())); in MaintainLiveIns()
413 MachineBasicBlock *CurMBB = OldInst->getParent(); in ReplaceTailWithBranchTo() local
418 MaintainLiveIns(CurMBB, NewDest); in ReplaceTailWithBranchTo()
426 MachineBasicBlock *BranchFolder::SplitMBBAt(MachineBasicBlock &CurMBB, in SplitMBBAt() argument
429 if (!TII->isLegalToSplitMBBAt(CurMBB, BBI1)) in SplitMBBAt()
432 MachineFunction &MF = *CurMBB.getParent(); in SplitMBBAt()
435 MachineFunction::iterator MBBI = CurMBB.getIterator(); in SplitMBBAt()
437 CurMBB.getParent()->insert(++MBBI, NewMBB); in SplitMBBAt()
440 NewMBB->transferSuccessors(&CurMBB); in SplitMBBAt()
443 CurMBB.addSuccessor(NewMBB); in SplitMBBAt()
446 NewMBB->splice(NewMBB->end(), &CurMBB, BBI1, CurMBB.end()); in SplitMBBAt()
449 MBBFreqInfo.setBlockFreq(NewMBB, MBBFreqInfo.getBlockFreq(&CurMBB)); in SplitMBBAt()
452 MaintainLiveIns(&CurMBB, NewMBB); in SplitMBBAt()
455 const auto &FuncletI = FuncletMembership.find(&CurMBB); in SplitMBBAt()
484 static void FixTail(MachineBasicBlock *CurMBB, MachineBasicBlock *SuccBB, in FixTail() argument
486 MachineFunction *MF = CurMBB->getParent(); in FixTail()
487 MachineFunction::iterator I = std::next(MachineFunction::iterator(CurMBB)); in FixTail()
492 !TII->AnalyzeBranch(*CurMBB, TBB, FBB, Cond, true)) { in FixTail()
496 TII->RemoveBranch(*CurMBB); in FixTail()
497 TII->InsertBranch(*CurMBB, SuccBB, nullptr, Cond, dl); in FixTail()
502 TII->InsertBranch(*CurMBB, SuccBB, nullptr, in FixTail()
682 MachineBasicBlock *CurMBB = CurMPIter->getBlock(); in RemoveBlocksWithHash() local
683 if (SuccBB && CurMBB != PredBB) in RemoveBlocksWithHash()
684 FixTail(CurMBB, SuccBB, TII); in RemoveBlocksWithHash()