Lines Matching full:successors
264 for (const auto *Succ : successors(BB)) in getSccExitBlocks()
296 if (llvm::any_of(successors(BB), [&](const BasicBlock *Succ) { in calculateSccBlockType()
390 // Check that the number of successors is manageable. in calcMetadataWeights()
391 assert(TI->getNumSuccessors() < UINT32_MAX && "Too many successors"); in calcMetadataWeights()
539 // Compute the unlikely successors to the block BB in the loop L, specifically
597 // Trace the phi node to find all values that come from successors of BB in computeUnlikelySuccessors()
620 if (!CmpLHSConst || !llvm::is_contained(successors(BB), B)) in computeUnlikelySuccessors()
672 const LoopBlock &SrcLoopBB, iterator_range<IterT> Successors) const { in getMaxEstimatedEdgeWeight()
675 for (const BasicBlock *DstBB : Successors) { in getMaxEstimatedEdgeWeight()
813 // calculated before visiting theirs successors. in computeEestimateBlockWeight()
824 // blocks/loops from successors/exits. in computeEestimateBlockWeight()
857 // We take maximum over all weights of successors. In other words we take in computeEestimateBlockWeight()
864 auto MaxWeight = getMaxEstimatedEdgeWeight(LoopBB, successors(BB)); in computeEestimateBlockWeight()
891 // Go over all successors of BB and put their weights into SuccWeights. in calcEstimatedHeuristics()
892 for (const BasicBlock *SuccBB : successors(BB)) { in calcEstimatedHeuristics()
1078 for (const BasicBlock *Succ : successors(&BI)) in print()
1091 /// default probability 1/N where N is the number of successors. Here an edge is
1093 /// index to the successors.
1121 return BranchProbability(llvm::count(successors(Src), Dst), succ_size(Src)); in getEdgeProbability()
1204 // Note that we cannot use successors of BB because the terminator of BB may in eraseBlock()
1206 // Instead we remove prob data for the block by iterating successors by their in eraseBlock()
1209 // set for all successors from 0 to M at once by the method in eraseBlock()
1216 "Must be no more successors"); in eraseBlock()
1253 // the successors of a block iteratively. in calculate()
1257 // If there is no at least two successors, no sense to set probability. in calculate()