Lines Matching refs:SuccBB
504 static void FixTail(MachineBasicBlock *CurMBB, MachineBasicBlock *SuccBB, in FixTail() argument
516 TII->InsertBranch(*CurMBB, SuccBB, nullptr, Cond, dl); in FixTail()
521 TII->InsertBranch(*CurMBB, SuccBB, nullptr, in FixTail()
598 MachineBasicBlock::iterator &I2, MachineBasicBlock *SuccBB, in ProfitableToMerge() argument
640 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB && in ProfitableToMerge()
670 MachineBasicBlock *SuccBB, in ComputeSameTails() argument
684 SuccBB, PredBB, in ComputeSameTails()
706 MachineBasicBlock *SuccBB, in RemoveBlocksWithHash() argument
714 if (SuccBB && CurMBB != PredBB) in RemoveBlocksWithHash()
715 FixTail(CurMBB, SuccBB, TII); in RemoveBlocksWithHash()
727 MachineBasicBlock *SuccBB, in CreateCommonTailOnlyBlock() argument
760 const BasicBlock *BB = (SuccBB && MBB->succ_size() == 1) ? in CreateCommonTailOnlyBlock()
761 SuccBB->getBasicBlock() : MBB->getBasicBlock(); in CreateCommonTailOnlyBlock()
826 bool BranchFolder::TryTailMergeBlocks(MachineBasicBlock *SuccBB, in TryTailMergeBlocks() argument
839 if (SuccBB) { in TryTailMergeBlocks()
840 dbgs() << " with successor BB#" << SuccBB->getNumber() << '\n'; in TryTailMergeBlocks()
862 SuccBB, PredBB); in TryTailMergeBlocks()
867 RemoveBlocksWithHash(CurHash, SuccBB, PredBB); in TryTailMergeBlocks()
910 if (!CreateCommonTailOnlyBlock(PredBB, SuccBB, in TryTailMergeBlocks()
912 RemoveBlocksWithHash(CurHash, SuccBB, PredBB); in TryTailMergeBlocks()
1576 for (MachineBasicBlock *SuccBB : MBB->successors()) { in OptimizeBlock()
1578 MachineFunction::iterator SuccPrev = --SuccBB->getIterator(); in OptimizeBlock()
1584 if (SuccBB != MBB && &*SuccPrev != MBB && in OptimizeBlock()
1586 !SuccBB->isEHPad()) { in OptimizeBlock()
1587 MBB->moveBefore(SuccBB); in OptimizeBlock()
1639 for (MachineBasicBlock *SuccBB : BB->successors()) in findFalseBlock()
1640 if (SuccBB != TrueBB) in findFalseBlock()
1641 return SuccBB; in findFalseBlock()