Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp833 auto LoopWeight = getMaxEstimatedEdgeWeight( in estimateBlockWeights() local
836 if (LoopWeight) { in estimateBlockWeights()
838 if (LoopWeight <= static_cast<uint32_t>(BlockExecWeight::UNREACHABLE)) in estimateBlockWeights()
839 LoopWeight = static_cast<uint32_t>(BlockExecWeight::LOWEST_NON_ZERO); in estimateBlockWeights()
841 EstimatedLoopWeight.insert({LD, *LoopWeight}); in estimateBlockWeights()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUtils.cpp815 uint64_t LoopWeight, ExitWeight; in getEstimatedTripCount() local
816 if (!extractBranchWeights(*ExitingBranch, LoopWeight, ExitWeight)) in getEstimatedTripCount()
820 std::swap(LoopWeight, ExitWeight); in getEstimatedTripCount()
830 uint64_t ExitCount = llvm::divideNearest(LoopWeight, ExitWeight); in getEstimatedTripCount()