• Home
  • Raw
  • Download

Lines Matching refs:Succ

292   bool shouldPredBlockBeOutlined(MachineBasicBlock *BB, MachineBasicBlock *Succ,
298 hasBetterLayoutPredecessor(MachineBasicBlock *BB, MachineBasicBlock *Succ,
398 for (MachineBasicBlock *Succ : MBB->successors()) { in markChainSuccessors()
399 if (BlockFilter && !BlockFilter->count(Succ)) in markChainSuccessors()
401 BlockChain &SuccChain = *BlockToChain[Succ]; in markChainSuccessors()
403 if (&Chain == &SuccChain || Succ == LoopHeaderBB) in markChainSuccessors()
445 for (MachineBasicBlock *Succ : BB->successors()) { in collectViableSuccessors()
447 if (Succ->isEHPad() || (BlockFilter && !BlockFilter->count(Succ))) { in collectViableSuccessors()
450 BlockChain *SuccChain = BlockToChain[Succ]; in collectViableSuccessors()
453 } else if (Succ != *SuccChain->begin()) { in collectViableSuccessors()
454 DEBUG(dbgs() << " " << getBlockName(Succ) << " -> Mid chain!\n"); in collectViableSuccessors()
459 AdjustedSumProb -= MBPI->getEdgeProbability(BB, Succ); in collectViableSuccessors()
461 Successors.push_back(Succ); in collectViableSuccessors()
494 MachineBasicBlock *BB, MachineBasicBlock *Succ, BlockChain &Chain, in shouldPredBlockBeOutlined() argument
502 if (SuccProb > HotProb.getCompl() && UnavoidableBlocks.count(Succ) > 0) { in shouldPredBlockBeOutlined()
503 for (MachineBasicBlock *Pred : Succ->predecessors()) { in shouldPredBlockBeOutlined()
505 if (Pred == Succ || (BlockFilter && !BlockFilter->count(Pred)) || in shouldPredBlockBeOutlined()
549 MachineBasicBlock *BB, MachineBasicBlock *Succ, BlockChain &SuccChain, in hasBetterLayoutPredecessor() argument
614 DEBUG(dbgs() << " " << getBlockName(Succ) << " -> " << SuccProb in hasBetterLayoutPredecessor()
624 for (MachineBasicBlock *Pred : Succ->predecessors()) { in hasBetterLayoutPredecessor()
625 if (Pred == Succ || BlockToChain[Pred] == &SuccChain || in hasBetterLayoutPredecessor()
643 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, Succ); in hasBetterLayoutPredecessor()
651 DEBUG(dbgs() << " " << getBlockName(Succ) << " -> " << SuccProb in hasBetterLayoutPredecessor()
682 for (MachineBasicBlock *Succ : Successors) { in selectBestSuccessor()
683 auto RealSuccProb = MBPI->getEdgeProbability(BB, Succ); in selectBestSuccessor()
688 if (shouldPredBlockBeOutlined(BB, Succ, Chain, BlockFilter, SuccProb, in selectBestSuccessor()
690 return Succ; in selectBestSuccessor()
692 BlockChain &SuccChain = *BlockToChain[Succ]; in selectBestSuccessor()
695 if (hasBetterLayoutPredecessor(BB, Succ, SuccChain, SuccProb, RealSuccProb, in selectBestSuccessor()
700 dbgs() << " " << getBlockName(Succ) << " -> " << SuccProb in selectBestSuccessor()
706 BestSucc = Succ; in selectBestSuccessor()
994 for (MachineBasicBlock *Succ : MBB->successors()) { in findBestLoopExit()
995 if (Succ->isEHPad()) in findBestLoopExit()
997 if (Succ == MBB) in findBestLoopExit()
999 BlockChain &SuccChain = *BlockToChain[Succ]; in findBestLoopExit()
1003 << getBlockName(Succ) << " (chain conflict)\n"); in findBestLoopExit()
1007 auto SuccProb = MBPI->getEdgeProbability(MBB, Succ); in findBestLoopExit()
1008 if (LoopBlockSet.count(Succ)) { in findBestLoopExit()
1010 << getBlockName(Succ) << " (" << SuccProb << ")\n"); in findBestLoopExit()
1016 if (MachineLoop *ExitLoop = MLI->getLoopFor(Succ)) { in findBestLoopExit()
1024 << getBlockName(Succ) << " [L:" << SuccLoopDepth << "] ("; in findBestLoopExit()
1033 (MBB->isLayoutSuccessor(Succ) && in findBestLoopExit()
1090 for (MachineBasicBlock *Succ : Bottom->successors()) { in rotateLoop()
1091 BlockChain *SuccChain = BlockToChain[Succ]; in rotateLoop()
1092 if (!LoopBlockSet.count(Succ) && in rotateLoop()
1093 (!SuccChain || Succ == *SuccChain->begin())) in rotateLoop()
1164 for (auto *Succ : BB->successors()) { in rotateLoopWithProfile() local
1165 BlockChain *SuccChain = BlockToChain[Succ]; in rotateLoopWithProfile()
1166 if (!LoopBlockSet.count(Succ) && in rotateLoopWithProfile()
1167 (!SuccChain || Succ == *SuccChain->begin())) { in rotateLoopWithProfile()
1168 auto SuccProb = MBPI->getEdgeProbability(BB, Succ); in rotateLoopWithProfile()
1762 for (MachineBasicBlock *Succ : MBB.successors()) { in INITIALIZE_PASS_DEPENDENCY()
1764 if (MBB.isLayoutSuccessor(Succ)) in INITIALIZE_PASS_DEPENDENCY()
1768 BlockFreq * MBPI->getEdgeProbability(&MBB, Succ); in INITIALIZE_PASS_DEPENDENCY()