Lines Matching refs:MBB2

322                                         MachineBasicBlock *MBB2,  in ComputeCommonTailLength()  argument
326 MachineBasicBlock::iterator MBBI2 = MBB2->end(); in ComputeCommonTailLength()
331 MBBI2 = skipBackwardPastNonInstructions(MBBI2, MBB2); in ComputeCommonTailLength()
332 if (MBBI1 == MBB1->end() || MBBI2 == MBB2->end()) in ComputeCommonTailLength()
540 ProfitableToMerge(MachineBasicBlock *MBB1, MachineBasicBlock *MBB2, in ProfitableToMerge() argument
553 auto EHScope2 = EHScopeMembership.find(MBB2); in ProfitableToMerge()
559 CommonTailLen = ComputeCommonTailLength(MBB1, MBB2, I1, I2); in ProfitableToMerge()
563 << " and " << printMBBReference(*MBB2) << " is " in ProfitableToMerge()
571 if (skipDebugInstructionsForward(MBB2->begin(), MBB2->end(), false) == I2) in ProfitableToMerge()
572 I2 = MBB2->begin(); in ProfitableToMerge()
575 bool FullBlockTail2 = I2 == MBB2->begin(); in ProfitableToMerge()
582 if ((MBB1 == PredBB || MBB2 == PredBB) && in ProfitableToMerge()
585 unsigned NumTerms = CountTerminators(MBB1 == PredBB ? MBB2 : MBB1, I); in ProfitableToMerge()
596 blockEndsInUnreachable(MBB1) && blockEndsInUnreachable(MBB2)) in ProfitableToMerge()
603 if (MBB1->isLayoutSuccessor(MBB2) && FullBlockTail2) in ProfitableToMerge()
605 if (MBB2->isLayoutSuccessor(MBB1) && FullBlockTail1) in ProfitableToMerge()
620 if (!BothFallThrough(MBB1) || !BothFallThrough(MBB2)) in ProfitableToMerge()
630 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB && in ProfitableToMerge()
633 !MBB2->back().isBarrier()) in ProfitableToMerge()
648 llvm::shouldOptimizeForSize(MBB2, PSI, &MBBFreqInfo)); in ProfitableToMerge()
1236 MachineBasicBlock *MBB2) { in IsBetterFallthrough() argument
1237 assert(MBB1 && MBB2 && "Unknown MachineBasicBlock"); in IsBetterFallthrough()
1244 MachineBasicBlock::iterator MBB2I = MBB2->getLastNonDebugInstr(); in IsBetterFallthrough()
1245 if (MBB1I == MBB1->end() || MBB2I == MBB2->end()) in IsBetterFallthrough()
1250 if (MBB1->isSuccessor(MBB2)) return true; in IsBetterFallthrough()
1251 if (MBB2->isSuccessor(MBB1)) return false; in IsBetterFallthrough()