Lines Matching refs:MBB2
297 MachineBasicBlock *MBB2, in ComputeCommonTailLength() argument
301 I2 = MBB2->end(); in ComputeCommonTailLength()
304 while (I1 != MBB1->begin() && I2 != MBB2->begin()) { in ComputeCommonTailLength()
310 if (I2==MBB2->begin()) in ComputeCommonTailLength()
323 if (I2==MBB2->begin()) { in ComputeCommonTailLength()
347 if (I1 == MBB1->begin() && I2 != MBB2->begin()) { in ComputeCommonTailLength()
350 if (I2 == MBB2->begin()) { in ComputeCommonTailLength()
357 if (I2 == MBB2->begin() && I1 != MBB1->begin()) { in ComputeCommonTailLength()
516 MachineBasicBlock *MBB2, in ProfitableToMerge() argument
523 CommonTailLen = ComputeCommonTailLength(MBB1, MBB2, I1, I2); in ProfitableToMerge()
527 << " and BB#" << MBB2->getNumber() << " is " << CommonTailLen in ProfitableToMerge()
532 if (MBB1 == PredBB || MBB2 == PredBB) { in ProfitableToMerge()
534 unsigned NumTerms = CountTerminators(MBB1 == PredBB ? MBB2 : MBB1, I); in ProfitableToMerge()
543 if (MBB1->isLayoutSuccessor(MBB2) && I2 == MBB2->begin()) in ProfitableToMerge()
545 if (MBB2->isLayoutSuccessor(MBB1) && I1 == MBB1->begin()) in ProfitableToMerge()
552 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB && in ProfitableToMerge()
554 !MBB2->back().getDesc().isBarrier()) in ProfitableToMerge()
568 (I1 == MBB1->begin() || I2 == MBB2->begin())) in ProfitableToMerge()
991 MachineBasicBlock *MBB2) { in IsBetterFallthrough() argument
996 if (IsEmptyBlock(MBB1) || IsEmptyBlock(MBB2)) return false; in IsBetterFallthrough()
1000 if (MBB1->isSuccessor(MBB2)) return true; in IsBetterFallthrough()
1001 if (MBB2->isSuccessor(MBB1)) return false; in IsBetterFallthrough()
1008 MachineBasicBlock::iterator MBB2I = --MBB2->end(); in IsBetterFallthrough()