Home
last modified time | relevance | path

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

/src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUtils.cpp828 uint64_t LoopWeight, ExitWeight; in getEstimatedTripCount() local
829 if (!extractBranchWeights(*ExitingBranch, LoopWeight, ExitWeight)) in getEstimatedTripCount()
833 std::swap(LoopWeight, ExitWeight); in getEstimatedTripCount()
835 if (!ExitWeight) in getEstimatedTripCount()
839 OrigExitWeight = ExitWeight; in getEstimatedTripCount()
843 uint64_t ExitCount = llvm::divideNearest(LoopWeight, ExitWeight); in getEstimatedTripCount()
856 uint64_t ExitWeight; in getLoopEstimatedTripCount() local
858 getEstimatedTripCount(LatchBranch, L, ExitWeight)) { in getLoopEstimatedTripCount()
860 *EstimatedLoopInvocationWeight = ExitWeight; in getLoopEstimatedTripCount()
H A DLoopUnrollRuntime.cpp401 uint32_t ExitWeight; in CloneLoopBlocks() local
407 ExitWeight = 1; in CloneLoopBlocks()
412 ExitWeight = 1; in CloneLoopBlocks()
416 BranchWeights = MDB.createBranchWeights(BackEdgeWeight, ExitWeight); in CloneLoopBlocks()