Lines Matching refs:MBB2
326 MachineBasicBlock *MBB2, in ComputeCommonTailLength() argument
330 MachineBasicBlock::iterator MBBI2 = MBB2->end(); in ComputeCommonTailLength()
335 MBBI2 = skipBackwardPastNonInstructions(MBBI2, MBB2); in ComputeCommonTailLength()
336 if (MBBI1 == MBB1->end() || MBBI2 == MBB2->end()) in ComputeCommonTailLength()
538 ProfitableToMerge(MachineBasicBlock *MBB1, MachineBasicBlock *MBB2, in ProfitableToMerge() argument
551 auto EHScope2 = EHScopeMembership.find(MBB2); in ProfitableToMerge()
557 CommonTailLen = ComputeCommonTailLength(MBB1, MBB2, I1, I2); in ProfitableToMerge()
561 << " and " << printMBBReference(*MBB2) << " is " in ProfitableToMerge()
569 if (skipDebugInstructionsForward(MBB2->begin(), MBB2->end(), false) == I2) in ProfitableToMerge()
570 I2 = MBB2->begin(); in ProfitableToMerge()
573 bool FullBlockTail2 = I2 == MBB2->begin(); in ProfitableToMerge()
580 if ((MBB1 == PredBB || MBB2 == PredBB) && 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()
631 !MBB2->back().isBarrier()) in ProfitableToMerge()
646 llvm::shouldOptimizeForSize(MBB2, PSI, &MBBFreqInfo)); in ProfitableToMerge()
1241 MachineBasicBlock *MBB2) { in IsBetterFallthrough() argument
1242 assert(MBB1 && MBB2 && "Unknown MachineBasicBlock"); in IsBetterFallthrough()
1249 MachineBasicBlock::iterator MBB2I = MBB2->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()