Lines Matching refs:MBB1

329 static unsigned ComputeCommonTailLength(MachineBasicBlock *MBB1,  in ComputeCommonTailLength()  argument
333 MachineBasicBlock::iterator MBBI1 = MBB1->end(); in ComputeCommonTailLength()
338 MBBI1 = skipBackwardPastNonInstructions(MBBI1, MBB1); in ComputeCommonTailLength()
340 if (MBBI1 == MBB1->end() || MBBI2 == MBB2->end()) in ComputeCommonTailLength()
544 ProfitableToMerge(MachineBasicBlock *MBB1, MachineBasicBlock *MBB2, in ProfitableToMerge() argument
555 auto EHScope1 = EHScopeMembership.find(MBB1); in ProfitableToMerge()
563 CommonTailLen = ComputeCommonTailLength(MBB1, MBB2, I1, I2); in ProfitableToMerge()
566 LLVM_DEBUG(dbgs() << "Common tail length of " << printMBBReference(*MBB1) in ProfitableToMerge()
573 if (skipDebugInstructionsForward(MBB1->begin(), MBB1->end(), false) == I1) in ProfitableToMerge()
574 I1 = MBB1->begin(); in ProfitableToMerge()
578 bool FullBlockTail1 = I1 == MBB1->begin(); in ProfitableToMerge()
586 if ((MBB1 == PredBB || MBB2 == PredBB) && in ProfitableToMerge()
587 (!AfterPlacement || MBB1->succ_size() == 1)) { 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()
635 (MBB1->succ_size() == 1 || !AfterPlacement) && in ProfitableToMerge()
636 !MBB1->back().isBarrier() && in ProfitableToMerge()
648 MachineFunction *MF = MBB1->getParent(); in ProfitableToMerge()
651 (llvm::shouldOptimizeForSize(MBB1, PSI, &MBBFreqInfo) && in ProfitableToMerge()
1251 static bool IsBetterFallthrough(MachineBasicBlock *MBB1, in IsBetterFallthrough() argument
1253 assert(MBB1 && MBB2 && "Unknown MachineBasicBlock"); in IsBetterFallthrough()
1259 MachineBasicBlock::iterator MBB1I = MBB1->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()