Lines Matching refs:MBB1
330 static unsigned ComputeCommonTailLength(MachineBasicBlock *MBB1, in ComputeCommonTailLength() argument
334 I1 = MBB1->end(); in ComputeCommonTailLength()
338 while (I1 != MBB1->begin() && I2 != MBB2->begin()) { in ComputeCommonTailLength()
342 if (I1==MBB1->begin()) { in ComputeCommonTailLength()
381 if (I1 == MBB1->begin() && I2 != MBB2->begin()) { in ComputeCommonTailLength()
390 if (I2 == MBB2->begin() && I1 != MBB1->begin()) { in ComputeCommonTailLength()
393 if (I1 == MBB1->begin()) in ComputeCommonTailLength()
595 ProfitableToMerge(MachineBasicBlock *MBB1, MachineBasicBlock *MBB2, in ProfitableToMerge() argument
603 auto Funclet1 = FuncletMembership.find(MBB1); in ProfitableToMerge()
611 CommonTailLen = ComputeCommonTailLength(MBB1, MBB2, I1, I2); in ProfitableToMerge()
614 DEBUG(dbgs() << "Common tail length of BB#" << MBB1->getNumber() in ProfitableToMerge()
620 if (MBB1 == PredBB || MBB2 == PredBB) { in ProfitableToMerge()
622 unsigned NumTerms = CountTerminators(MBB1 == PredBB ? MBB2 : MBB1, I); in ProfitableToMerge()
631 if (MBB1->isLayoutSuccessor(MBB2) && I2 == MBB2->begin()) in ProfitableToMerge()
633 if (MBB2->isLayoutSuccessor(MBB1) && I1 == MBB1->begin()) in ProfitableToMerge()
640 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB && in ProfitableToMerge()
641 !MBB1->back().isBarrier() && in ProfitableToMerge()
653 MachineFunction *MF = MBB1->getParent(); in ProfitableToMerge()
655 (I1 == MBB1->begin() || I2 == MBB2->begin()); in ProfitableToMerge()
1193 static bool IsBetterFallthrough(MachineBasicBlock *MBB1, in IsBetterFallthrough() argument
1199 MachineBasicBlock::iterator MBB1I = MBB1->getLastNonDebugInstr(); in IsBetterFallthrough()
1201 if (MBB1I == MBB1->end() || MBB2I == MBB2->end()) in IsBetterFallthrough()
1206 if (MBB1->isSuccessor(MBB2)) return true; in IsBetterFallthrough()
1207 if (MBB2->isSuccessor(MBB1)) return false; in IsBetterFallthrough()