Home
last modified time | relevance | path

Searched refs:LoopWeight (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp847 auto LoopWeight = getMaxEstimatedEdgeWeight( in computeEestimateBlockWeight() local
850 if (LoopWeight) { in computeEestimateBlockWeight()
852 if (LoopWeight <= static_cast<uint32_t>(BlockExecWeight::UNREACHABLE)) in computeEestimateBlockWeight()
853 LoopWeight = static_cast<uint32_t>(BlockExecWeight::LOWEST_NON_ZERO); in computeEestimateBlockWeight()
855 EstimatedLoopWeight.insert({LoopBB.getLoopData(), *LoopWeight}); in computeEestimateBlockWeight()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLoopUtils.cpp791 uint64_t LoopWeight, ExitWeight; in getEstimatedTripCount() local
792 if (!ExitingBranch->extractProfMetadata(LoopWeight, ExitWeight)) in getEstimatedTripCount()
796 std::swap(LoopWeight, ExitWeight); in getEstimatedTripCount()
806 uint64_t ExitCount = llvm::divideNearest(LoopWeight, ExitWeight); in getEstimatedTripCount()