Lines Matching refs:MBB2

330                                         MachineBasicBlock *MBB2,  in ComputeCommonTailLength()  argument
334 MachineBasicBlock::iterator MBBI2 = MBB2->end(); in ComputeCommonTailLength()
339 MBBI2 = skipBackwardPastNonInstructions(MBBI2, MBB2); in ComputeCommonTailLength()
340 if (MBBI1 == MBB1->end() || MBBI2 == MBB2->end()) in ComputeCommonTailLength()
544 ProfitableToMerge(MachineBasicBlock *MBB1, MachineBasicBlock *MBB2, in ProfitableToMerge() argument
557 auto EHScope2 = EHScopeMembership.find(MBB2); in ProfitableToMerge()
563 CommonTailLen = ComputeCommonTailLength(MBB1, MBB2, I1, I2); in ProfitableToMerge()
567 << " and " << printMBBReference(*MBB2) << " is " in ProfitableToMerge()
575 if (skipDebugInstructionsForward(MBB2->begin(), MBB2->end(), false) == I2) in ProfitableToMerge()
576 I2 = MBB2->begin(); in ProfitableToMerge()
579 bool FullBlockTail2 = I2 == MBB2->begin(); in ProfitableToMerge()
586 if ((MBB1 == PredBB || MBB2 == PredBB) && in ProfitableToMerge()
589 unsigned NumTerms = CountTerminators(MBB1 == PredBB ? MBB2 : MBB1, I); in ProfitableToMerge()
600 blockEndsInUnreachable(MBB1) && blockEndsInUnreachable(MBB2)) in ProfitableToMerge()
607 if (MBB1->isLayoutSuccessor(MBB2) && FullBlockTail2) in ProfitableToMerge()
609 if (MBB2->isLayoutSuccessor(MBB1) && FullBlockTail1) in ProfitableToMerge()
624 if (!BothFallThrough(MBB1) || !BothFallThrough(MBB2)) in ProfitableToMerge()
634 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB && in ProfitableToMerge()
637 !MBB2->back().isBarrier()) in ProfitableToMerge()
652 llvm::shouldOptimizeForSize(MBB2, PSI, &MBBFreqInfo)); in ProfitableToMerge()
1252 MachineBasicBlock *MBB2) { in IsBetterFallthrough() argument
1253 assert(MBB1 && MBB2 && "Unknown MachineBasicBlock"); in IsBetterFallthrough()
1260 MachineBasicBlock::iterator MBB2I = MBB2->getLastNonDebugInstr(); in IsBetterFallthrough()
1261 if (MBB1I == MBB1->end() || MBB2I == MBB2->end()) in IsBetterFallthrough()
1266 if (MBB1->isSuccessor(MBB2)) return true; in IsBetterFallthrough()
1267 if (MBB2->isSuccessor(MBB1)) return false; in IsBetterFallthrough()