Lines Matching refs:MBB2
308 MachineBasicBlock *MBB2, in ComputeCommonTailLength() argument
312 I2 = MBB2->end(); in ComputeCommonTailLength()
315 while (I1 != MBB1->begin() && I2 != MBB2->begin()) { in ComputeCommonTailLength()
321 if (I2==MBB2->begin()) { in ComputeCommonTailLength()
335 if (I2==MBB2->begin()) { in ComputeCommonTailLength()
359 if (I1 == MBB1->begin() && I2 != MBB2->begin()) { in ComputeCommonTailLength()
362 if (I2 == MBB2->begin()) in ComputeCommonTailLength()
368 if (I2 == MBB2->begin() && I1 != MBB1->begin()) { in ComputeCommonTailLength()
404 while (I2 != MBB2->end() && I2->isCFIInstruction()) { in ComputeCommonTailLength()
633 ProfitableToMerge(MachineBasicBlock *MBB1, MachineBasicBlock *MBB2, in ProfitableToMerge() argument
644 auto EHScope2 = EHScopeMembership.find(MBB2); in ProfitableToMerge()
650 CommonTailLen = ComputeCommonTailLength(MBB1, MBB2, I1, I2); in ProfitableToMerge()
654 << " and " << printMBBReference(*MBB2) << " is " in ProfitableToMerge()
662 if ((MBB1 == PredBB || MBB2 == PredBB) && in ProfitableToMerge()
665 unsigned NumTerms = CountTerminators(MBB1 == PredBB ? MBB2 : MBB1, I); in ProfitableToMerge()
675 if (I1 == MBB1->begin() && I2 == MBB2->begin() && in ProfitableToMerge()
676 blockEndsInUnreachable(MBB1) && blockEndsInUnreachable(MBB2)) in ProfitableToMerge()
683 if (MBB1->isLayoutSuccessor(MBB2) && I2 == MBB2->begin()) in ProfitableToMerge()
685 if (MBB2->isLayoutSuccessor(MBB1) && I1 == MBB1->begin()) in ProfitableToMerge()
692 if (AfterPlacement && I1 == MBB1->begin() && I2 == MBB2->begin()) { in ProfitableToMerge()
700 if (!BothFallThrough(MBB1) || !BothFallThrough(MBB2)) in ProfitableToMerge()
710 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB && in ProfitableToMerge()
713 !MBB2->back().isBarrier()) in ProfitableToMerge()
726 (I1 == MBB1->begin() || I2 == MBB2->begin()); in ProfitableToMerge()
1334 MachineBasicBlock *MBB2) { in IsBetterFallthrough() argument
1340 MachineBasicBlock::iterator MBB2I = MBB2->getLastNonDebugInstr(); in IsBetterFallthrough()
1341 if (MBB1I == MBB1->end() || MBB2I == MBB2->end()) in IsBetterFallthrough()
1346 if (MBB1->isSuccessor(MBB2)) return true; in IsBetterFallthrough()
1347 if (MBB2->isSuccessor(MBB1)) return false; in IsBetterFallthrough()