Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLoopPeel.cpp508 uint64_t ExitWeight, in updateBranchWeights() argument
518 HeaderIdx ? MDB.createBranchWeights(ExitWeight, FallThroughWeight) in updateBranchWeights()
519 : MDB.createBranchWeights(FallThroughWeight, ExitWeight); in updateBranchWeights()
522 FallThroughWeight > ExitWeight ? FallThroughWeight - ExitWeight : 1; in updateBranchWeights()
532 uint64_t &ExitWeight, in initBranchWeights() argument
538 ExitWeight = HeaderIdx ? TrueWeight : FalseWeight; in initBranchWeights()
549 uint64_t ExitWeight, in fixupBranchWeights() argument
560 HeaderIdx ? MDB.createBranchWeights(ExitWeight, FallThroughWeight) in fixupBranchWeights()
839 uint64_t ExitWeight = 0, FallThroughWeight = 0; in peelLoop() local
840 initBranchWeights(Header, LatchBR, ExitWeight, FallThroughWeight); in peelLoop()
[all …]
H A DLoopUtils.cpp791 uint64_t LoopWeight, ExitWeight; in getEstimatedTripCount() local
792 if (!ExitingBranch->extractProfMetadata(LoopWeight, ExitWeight)) in getEstimatedTripCount()
796 std::swap(LoopWeight, ExitWeight); in getEstimatedTripCount()
798 if (!ExitWeight) in getEstimatedTripCount()
802 OrigExitWeight = ExitWeight; in getEstimatedTripCount()
806 uint64_t ExitCount = llvm::divideNearest(LoopWeight, ExitWeight); in getEstimatedTripCount()
819 uint64_t ExitWeight; in getLoopEstimatedTripCount() local
821 getEstimatedTripCount(LatchBranch, L, ExitWeight)) { in getLoopEstimatedTripCount()
823 *EstimatedLoopInvocationWeight = ExitWeight; in getLoopEstimatedTripCount()
H A DLoopUnrollRuntime.cpp476 uint64_t ExitWeight = LatchBR->getSuccessor(0) == OrigLoop->getHeader() in updateLatchBranchWeightsForRemainderLoop() local
480 uint64_t BackEdgeWeight = (UnrollFactor - 1) * ExitWeight; in updateLatchBranchWeightsForRemainderLoop()
487 HeaderIdx ? MDB.createBranchWeights(ExitWeight, BackEdgeWeight) in updateLatchBranchWeightsForRemainderLoop()
488 : MDB.createBranchWeights(BackEdgeWeight, ExitWeight); in updateLatchBranchWeightsForRemainderLoop()