Lines Matching refs:LatchExitWeight
781 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()
828 MDB.createBranchWeights(BackedgeTakenWeight, LatchExitWeight)); in setLoopEstimatedTripCount()