Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUtils.cpp781 uint64_t BackedgeTakenWeight, LatchExitWeight; in getLoopEstimatedTripCount() local
782 if (!LatchBranch->extractProfMetadata(BackedgeTakenWeight, LatchExitWeight)) in getLoopEstimatedTripCount()
786 std::swap(BackedgeTakenWeight, LatchExitWeight); in getLoopEstimatedTripCount()
788 if (!LatchExitWeight) in getLoopEstimatedTripCount()
792 *EstimatedLoopInvocationWeight = LatchExitWeight; in getLoopEstimatedTripCount()
797 llvm::divideNearest(BackedgeTakenWeight, LatchExitWeight); in getLoopEstimatedTripCount()
811 unsigned LatchExitWeight = 0; in setLoopEstimatedTripCount() local
815 LatchExitWeight = EstimatedloopInvocationWeight; in setLoopEstimatedTripCount()
816 BackedgeTakenWeight = (EstimatedTripCount - 1) * LatchExitWeight; in setLoopEstimatedTripCount()
821 std::swap(BackedgeTakenWeight, LatchExitWeight); in setLoopEstimatedTripCount()
[all …]