Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DLoopUtils.cpp842 uint64_t BackedgeTakenWeight, LatchExitWeight; in getLoopEstimatedTripCount() local
843 if (!LatchBranch->extractProfMetadata(BackedgeTakenWeight, LatchExitWeight)) in getLoopEstimatedTripCount()
847 std::swap(BackedgeTakenWeight, LatchExitWeight); in getLoopEstimatedTripCount()
849 if (!LatchExitWeight) in getLoopEstimatedTripCount()
853 *EstimatedLoopInvocationWeight = LatchExitWeight; in getLoopEstimatedTripCount()
858 llvm::divideNearest(BackedgeTakenWeight, LatchExitWeight); in getLoopEstimatedTripCount()
872 unsigned LatchExitWeight = 0; in setLoopEstimatedTripCount() local
876 LatchExitWeight = EstimatedloopInvocationWeight; in setLoopEstimatedTripCount()
877 BackedgeTakenWeight = (EstimatedTripCount - 1) * LatchExitWeight; in setLoopEstimatedTripCount()
882 std::swap(BackedgeTakenWeight, LatchExitWeight); in setLoopEstimatedTripCount()
[all …]