Lines Matching refs:CurMBB

369 void BranchFolder::MaintainLiveIns(MachineBasicBlock *CurMBB,  in MaintainLiveIns()  argument
372 RS->enterBasicBlock(CurMBB); in MaintainLiveIns()
373 if (!CurMBB->empty()) in MaintainLiveIns()
374 RS->forward(prior(CurMBB->end())); in MaintainLiveIns()
387 MachineBasicBlock *CurMBB = OldInst->getParent(); in ReplaceTailWithBranchTo() local
392 MaintainLiveIns(CurMBB, NewDest); in ReplaceTailWithBranchTo()
400 MachineBasicBlock *BranchFolder::SplitMBBAt(MachineBasicBlock &CurMBB, in SplitMBBAt() argument
402 if (!TII->isLegalToSplitMBBAt(CurMBB, BBI1)) in SplitMBBAt()
405 MachineFunction &MF = *CurMBB.getParent(); in SplitMBBAt()
408 MachineFunction::iterator MBBI = &CurMBB; in SplitMBBAt()
409 MachineBasicBlock *NewMBB =MF.CreateMachineBasicBlock(CurMBB.getBasicBlock()); in SplitMBBAt()
410 CurMBB.getParent()->insert(++MBBI, NewMBB); in SplitMBBAt()
413 NewMBB->transferSuccessors(&CurMBB); in SplitMBBAt()
416 CurMBB.addSuccessor(NewMBB); in SplitMBBAt()
419 NewMBB->splice(NewMBB->end(), &CurMBB, BBI1, CurMBB.end()); in SplitMBBAt()
422 MaintainLiveIns(&CurMBB, NewMBB); in SplitMBBAt()
450 static void FixTail(MachineBasicBlock *CurMBB, MachineBasicBlock *SuccBB, in FixTail() argument
452 MachineFunction *MF = CurMBB->getParent(); in FixTail()
453 MachineFunction::iterator I = llvm::next(MachineFunction::iterator(CurMBB)); in FixTail()
458 !TII->AnalyzeBranch(*CurMBB, TBB, FBB, Cond, true)) { in FixTail()
462 TII->RemoveBranch(*CurMBB); in FixTail()
463 TII->InsertBranch(*CurMBB, SuccBB, NULL, Cond, dl); in FixTail()
468 TII->InsertBranch(*CurMBB, SuccBB, NULL, in FixTail()
629 MachineBasicBlock *CurMBB = CurMPIter->getBlock(); in RemoveBlocksWithHash() local
630 if (SuccBB && CurMBB != PredBB) in RemoveBlocksWithHash()
631 FixTail(CurMBB, SuccBB, TII); in RemoveBlocksWithHash()