Home
last modified time | relevance | path

Searched refs:BBWeight (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMIRSampleProfile.cpp210 uint64_t BBWeight = BlockWeights[EC]; in setBranchProbs() local
217 if (BBWeight != SumEdgeWeight) { in setBranchProbs()
219 << BBWeight << " SumEdgeWeight= " << SumEdgeWeight in setBranchProbs()
221 BBWeight = SumEdgeWeight; in setBranchProbs()
223 if (BBWeight == 0) { in setBranchProbs()
229 uint64_t BBWeightOrig = BBWeight; in setBranchProbs()
233 if (BBWeight > MaxWeight) { in setBranchProbs()
234 Factor = BBWeight / MaxWeight + 1; in setBranchProbs()
235 BBWeight /= Factor; in setBranchProbs()
247 assert(BBWeight >= EdgeWeight && in setBranchProbs()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/
H A DCFGMST.h141 uint64_t BBWeight = in buildEdges()
148 uint64_t scaleFactor = BBWeight; in buildEdges()
183 Edge *ExitO = &addEdge(&BB, nullptr, BBWeight); in buildEdges()
184 if (BBWeight > MaxExitOutWeight) { in buildEdges()
185 MaxExitOutWeight = BBWeight; in buildEdges()
189 << " w = " << BBWeight << "\n"); in buildEdges()
127 uint64_t BBWeight = buildEdges() local
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileLoaderBaseImpl.h801 uint64_t &BBWeight = BlockWeights[EC];
807 if (TotalWeight > BBWeight) {
808 BBWeight = TotalWeight;
824 if (BBWeight >= TotalWeight)
825 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight;
858 uint64_t &BBWeight = BlockWeights[BB];
860 if (BBWeight >= TotalWeight)
861 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight;
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp695 LoopBlock &LoopBB, uint32_t BBWeight, in updateEstimatedBlockWeight() argument
705 if (!EstimatedBlockWeight.insert({BB, BBWeight}).second) in updateEstimatedBlockWeight()
734 uint32_t BBWeight, SmallVectorImpl<BasicBlock *> &BlockWorkList, in propagateEstimatedBlockWeight() argument
754 if (!updateEstimatedBlockWeight(DomLoopBB, BBWeight, BlockWorkList, in propagateEstimatedBlockWeight()
816 if (auto BBWeight = getInitialEstimatedBlockWeight(BB)) in computeEestimateBlockWeight() local
819 propagateEstimatedBlockWeight(getLoopBlock(BB), DT, PDT, *BBWeight, in computeEestimateBlockWeight()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DBranchProbabilityInfo.h397 bool updateEstimatedBlockWeight(LoopBlock &LoopBB, uint32_t BBWeight,
404 PostDominatorTree *PDT, uint32_t BBWeight,