Searched refs:BBWeight (Results 1 – 5 of 5) sorted by relevance
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MIRSampleProfile.cpp | 178 uint64_t BBWeight = BlockWeights[EC]; in setBranchProbs() local 185 if (BBWeight != SumEdgeWeight) { in setBranchProbs() 187 << BBWeight << " SumEdgeWeight= " << SumEdgeWeight in setBranchProbs() 189 BBWeight = SumEdgeWeight; in setBranchProbs() 191 if (BBWeight == 0) { in setBranchProbs() 197 uint64_t BBWeightOrig = BBWeight; in setBranchProbs() 201 if (BBWeight > MaxWeight) { in setBranchProbs() 202 Factor = BBWeight / MaxWeight + 1; in setBranchProbs() 203 BBWeight /= Factor; in setBranchProbs() 215 assert(BBWeight >= EdgeWeight && in setBranchProbs() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | CFGMST.h | 127 uint64_t BBWeight = in buildEdges() local 134 uint64_t scaleFactor = BBWeight; in buildEdges() 168 Edge *ExitO = &addEdge(&BB, nullptr, BBWeight); in buildEdges() 169 if (BBWeight > MaxExitOutWeight) { in buildEdges() 170 MaxExitOutWeight = BBWeight; in buildEdges() 174 << " w = " << BBWeight << "\n"); in buildEdges()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | SampleProfileLoaderBaseImpl.h | 631 uint64_t &BBWeight = BlockWeights[EC]; 637 if (TotalWeight > BBWeight) { 638 BBWeight = TotalWeight; 654 if (BBWeight >= TotalWeight) 655 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight; 688 uint64_t &BBWeight = BlockWeights[BB]; 690 if (BBWeight >= TotalWeight) 691 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight;
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | BranchProbabilityInfo.cpp | 705 LoopBlock &LoopBB, uint32_t BBWeight, in updateEstimatedBlockWeight() argument 715 if (!EstimatedBlockWeight.insert({BB, BBWeight}).second) in updateEstimatedBlockWeight() 744 uint32_t BBWeight, SmallVectorImpl<BasicBlock *> &BlockWorkList, in propagateEstimatedBlockWeight() argument 764 if (!updateEstimatedBlockWeight(DomLoopBB, BBWeight, BlockWorkList, in propagateEstimatedBlockWeight() 828 if (auto BBWeight = getInitialEstimatedBlockWeight(BB)) in computeEestimateBlockWeight() local 831 propagateEstimatedBlockWeight(getLoopBlock(BB), DT, PDT, BBWeight.value(), in computeEestimateBlockWeight()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | BranchProbabilityInfo.h | 384 bool updateEstimatedBlockWeight(LoopBlock &LoopBB, uint32_t BBWeight, 391 PostDominatorTree *PDT, uint32_t BBWeight,
|