Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp837 auto LoopWeight = getMaxEstimatedEdgeWeight( in computeEestimateBlockWeight() local
840 if (LoopWeight) { in computeEestimateBlockWeight()
842 if (LoopWeight <= static_cast<uint32_t>(BlockExecWeight::UNREACHABLE)) in computeEestimateBlockWeight()
843 LoopWeight = static_cast<uint32_t>(BlockExecWeight::LOWEST_NON_ZERO); in computeEestimateBlockWeight()
845 EstimatedLoopWeight.insert({LoopBB.getLoopData(), *LoopWeight}); in computeEestimateBlockWeight()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUtils.cpp827 uint64_t LoopWeight, ExitWeight; in getEstimatedTripCount() local
828 if (!extractBranchWeights(*ExitingBranch, LoopWeight, ExitWeight)) in getEstimatedTripCount()
832 std::swap(LoopWeight, ExitWeight); in getEstimatedTripCount()
842 uint64_t ExitCount = llvm::divideNearest(LoopWeight, ExitWeight); in getEstimatedTripCount()