Lines Matching refs:MBB1

325 static unsigned ComputeCommonTailLength(MachineBasicBlock *MBB1,  in ComputeCommonTailLength()  argument
329 MachineBasicBlock::iterator MBBI1 = MBB1->end(); in ComputeCommonTailLength()
334 MBBI1 = skipBackwardPastNonInstructions(MBBI1, MBB1); in ComputeCommonTailLength()
336 if (MBBI1 == MBB1->end() || MBBI2 == MBB2->end()) in ComputeCommonTailLength()
538 ProfitableToMerge(MachineBasicBlock *MBB1, MachineBasicBlock *MBB2, in ProfitableToMerge() argument
549 auto EHScope1 = EHScopeMembership.find(MBB1); in ProfitableToMerge()
557 CommonTailLen = ComputeCommonTailLength(MBB1, MBB2, I1, I2); in ProfitableToMerge()
560 LLVM_DEBUG(dbgs() << "Common tail length of " << printMBBReference(*MBB1) in ProfitableToMerge()
567 if (skipDebugInstructionsForward(MBB1->begin(), MBB1->end(), false) == I1) in ProfitableToMerge()
568 I1 = MBB1->begin(); in ProfitableToMerge()
572 bool FullBlockTail1 = I1 == MBB1->begin(); in ProfitableToMerge()
580 if ((MBB1 == PredBB || MBB2 == PredBB) && in ProfitableToMerge()
581 (!AfterPlacement || MBB1->succ_size() == 1)) { in ProfitableToMerge()
583 unsigned NumTerms = CountTerminators(MBB1 == PredBB ? MBB2 : MBB1, I); in ProfitableToMerge()
594 blockEndsInUnreachable(MBB1) && blockEndsInUnreachable(MBB2)) in ProfitableToMerge()
601 if (MBB1->isLayoutSuccessor(MBB2) && FullBlockTail2) in ProfitableToMerge()
603 if (MBB2->isLayoutSuccessor(MBB1) && FullBlockTail1) in ProfitableToMerge()
618 if (!BothFallThrough(MBB1) || !BothFallThrough(MBB2)) in ProfitableToMerge()
628 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB && in ProfitableToMerge()
629 (MBB1->succ_size() == 1 || !AfterPlacement) && in ProfitableToMerge()
630 !MBB1->back().isBarrier() && in ProfitableToMerge()
642 MachineFunction *MF = MBB1->getParent(); in ProfitableToMerge()
645 (llvm::shouldOptimizeForSize(MBB1, PSI, &MBBFreqInfo) && in ProfitableToMerge()
1240 static bool IsBetterFallthrough(MachineBasicBlock *MBB1, in IsBetterFallthrough() argument
1242 assert(MBB1 && MBB2 && "Unknown MachineBasicBlock"); in IsBetterFallthrough()
1248 MachineBasicBlock::iterator MBB1I = MBB1->getLastNonDebugInstr(); in IsBetterFallthrough()
1250 if (MBB1I == MBB1->end() || MBB2I == MBB2->end()) in IsBetterFallthrough()
1255 if (MBB1->isSuccessor(MBB2)) return true; in IsBetterFallthrough()
1256 if (MBB2->isSuccessor(MBB1)) return false; in IsBetterFallthrough()