• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/

Lines Matching defs:MBB1

325 static unsigned ComputeCommonTailLength(MachineBasicBlock *MBB1,
329 MachineBasicBlock::iterator MBBI1 = MBB1->end();
334 MBBI1 = skipBackwardPastNonInstructions(MBBI1, MBB1);
336 if (MBBI1 == MBB1->end() || MBBI2 == MBB2->end())
531 /// MBB1, MBB2 The blocks to check
534 /// MBB1 and MBB2
536 /// instruction in the common tail shared by MBB1,MBB2
537 /// SuccBB A common successor of MBB1, MBB2 which are in a canonical form
544 ProfitableToMerge(MachineBasicBlock *MBB1, MachineBasicBlock *MBB2,
555 auto EHScope1 = EHScopeMembership.find(MBB1);
563 CommonTailLen = ComputeCommonTailLength(MBB1, MBB2, I1, I2);
566 LLVM_DEBUG(dbgs() << "Common tail length of " << printMBBReference(*MBB1)
573 if (skipDebugInstructionsForward(MBB1->begin(), MBB1->end()) == I1)
574 I1 = MBB1->begin();
578 bool FullBlockTail1 = I1 == MBB1->begin();
586 if ((MBB1 == PredBB || MBB2 == PredBB) &&
587 (!AfterPlacement || MBB1->succ_size() == 1)) {
589 unsigned NumTerms = CountTerminators(MBB1 == PredBB ? MBB2 : MBB1, I);
600 blockEndsInUnreachable(MBB1) && blockEndsInUnreachable(MBB2))
607 if (MBB1->isLayoutSuccessor(MBB2) && FullBlockTail2)
609 if (MBB2->isLayoutSuccessor(MBB1) && FullBlockTail1)
624 if (!BothFallThrough(MBB1) || !BothFallThrough(MBB2))
634 if (SuccBB && MBB1 != PredBB && MBB2 != PredBB &&
635 (MBB1->succ_size() == 1 || !AfterPlacement) &&
636 !MBB1->back().isBarrier() &&
648 MachineFunction *MF = MBB1->getParent();
651 (llvm::shouldOptimizeForSize(MBB1, PSI, &MBBFreqInfo) &&
1236 /// fall-through to MBB1 than to fall through into MBB2. This has to return
1237 /// a strict ordering, returning true for both (MBB1,MBB2) and (MBB2,MBB1) will
1239 static bool IsBetterFallthrough(MachineBasicBlock *MBB1,
1241 assert(MBB1 && MBB2 && "Unknown MachineBasicBlock");
1244 // MBB1 doesn't, we prefer to fall through into MBB1. This allows us to
1247 MachineBasicBlock::iterator MBB1I = MBB1->getLastNonDebugInstr();
1249 if (MBB1I == MBB1->end() || MBB2I == MBB2->end())
1254 if (MBB1->isSuccessor(MBB2)) return true;
1255 if (MBB2->isSuccessor(MBB1)) return false;