Home | History | Annotate | Download | only in IPO

Lines Matching refs:BB2

153   /// Two blocks BB1 and BB2 are in the same equivalence class if they
669 /// A block BB2 will be in the same equivalence class as \p BB1 if
672 /// 1- \p BB1 is a descendant of BB2 in the opposite tree. So, if BB2
673 /// is a descendant of \p BB1 in the dominator tree, then BB2 should
676 /// 2- Both BB2 and \p BB1 must be in the same loop.
678 /// For every block BB2 that meets those two requirements, we set BB2's
691 for (const auto *BB2 : Descendants) {
692 bool IsDomParent = DomTree->dominates(BB2, BB1);
693 bool IsInSameLoop = LI->getLoopFor(BB1) == LI->getLoopFor(BB2);
694 if (BB1 != BB2 && IsDomParent && IsInSameLoop) {
695 EquivalenceClass[BB2] = EC;
697 // If BB2 is heavier than BB1, make BB2 have the same weight
701 // (when BB2 is lighter than BB1). We will deal with this
705 Weight = std::max(Weight, BlockWeights[BB2]);
737 // every basic block BB2 such that:
739 // 1- BB1 dominates BB2.
740 // 2- BB2 post-dominates BB1.
741 // 3- BB1 and BB2 are in the same loop nest.
743 // If all those conditions hold, it means that BB2 is executed
745 // class by making BB2's equivalence class be BB1.