Lines Matching refs:CurMBB

392 void BranchFolder::MaintainLiveIns(MachineBasicBlock *CurMBB,  in MaintainLiveIns()  argument
395 RS->enterBasicBlock(CurMBB); in MaintainLiveIns()
396 if (!CurMBB->empty()) in MaintainLiveIns()
397 RS->forward(std::prev(CurMBB->end())); in MaintainLiveIns()
408 MachineBasicBlock *CurMBB = OldInst->getParent(); in ReplaceTailWithBranchTo() local
413 MaintainLiveIns(CurMBB, NewDest); in ReplaceTailWithBranchTo()
421 MachineBasicBlock *BranchFolder::SplitMBBAt(MachineBasicBlock &CurMBB, in SplitMBBAt() argument
424 if (!TII->isLegalToSplitMBBAt(CurMBB, BBI1)) in SplitMBBAt()
427 MachineFunction &MF = *CurMBB.getParent(); in SplitMBBAt()
430 MachineFunction::iterator MBBI = &CurMBB; in SplitMBBAt()
432 CurMBB.getParent()->insert(++MBBI, NewMBB); in SplitMBBAt()
435 NewMBB->transferSuccessors(&CurMBB); in SplitMBBAt()
438 CurMBB.addSuccessor(NewMBB); in SplitMBBAt()
441 NewMBB->splice(NewMBB->end(), &CurMBB, BBI1, CurMBB.end()); in SplitMBBAt()
444 MBBFreqInfo.setBlockFreq(NewMBB, MBBFreqInfo.getBlockFreq(&CurMBB)); in SplitMBBAt()
447 MaintainLiveIns(&CurMBB, NewMBB); in SplitMBBAt()
474 static void FixTail(MachineBasicBlock *CurMBB, MachineBasicBlock *SuccBB, in FixTail() argument
476 MachineFunction *MF = CurMBB->getParent(); in FixTail()
477 MachineFunction::iterator I = std::next(MachineFunction::iterator(CurMBB)); in FixTail()
482 !TII->AnalyzeBranch(*CurMBB, TBB, FBB, Cond, true)) { in FixTail()
486 TII->RemoveBranch(*CurMBB); in FixTail()
487 TII->InsertBranch(*CurMBB, SuccBB, nullptr, Cond, dl); in FixTail()
492 TII->InsertBranch(*CurMBB, SuccBB, nullptr, in FixTail()
666 MachineBasicBlock *CurMBB = CurMPIter->getBlock(); in RemoveBlocksWithHash() local
667 if (SuccBB && CurMBB != PredBB) in RemoveBlocksWithHash()
668 FixTail(CurMBB, SuccBB, TII); in RemoveBlocksWithHash()