Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DRegAllocEvictionAdvisor.h80 float MaxWeight = 0; ///< Maximum spill weight evicted. member
91 return std::tie(BrokenHints, MaxWeight) <
92 std::tie(O.BrokenHints, O.MaxWeight);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DRegAllocEvictionAdvisor.cpp309 Cost.MaxWeight = std::max(Cost.MaxWeight, Intf->weight()); in canEvictInterferenceBasedOnCost()
347 BestCost.MaxWeight = VirtReg.weight(); in tryFindEvictionCandidate()
H A DMIRSampleProfile.cpp234 uint32_t MaxWeight = std::numeric_limits<uint32_t>::max(); in setBranchProbs() local
236 if (BBWeight > MaxWeight) { in setBranchProbs()
237 Factor = BBWeight / MaxWeight + 1; in setBranchProbs()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp669 std::optional<uint32_t> MaxWeight; in getMaxEstimatedEdgeWeight() local
677 if (!MaxWeight || *MaxWeight < *Weight) in getMaxEstimatedEdgeWeight()
678 MaxWeight = Weight; in getMaxEstimatedEdgeWeight()
681 return MaxWeight; in getMaxEstimatedEdgeWeight()
860 auto MaxWeight = getMaxEstimatedEdgeWeight(LoopBB, successors(BB)); in estimateBlockWeights() local
862 if (MaxWeight) in estimateBlockWeights()
863 propagateEstimatedBlockWeight(LoopBB, DT, PDT, *MaxWeight, in estimateBlockWeights()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp1447 static uint64_t calculateWeightScale(uint64_t MaxWeight) { in calculateWeightScale() argument
1448 return MaxWeight < UINT32_MAX ? 1 : MaxWeight / UINT32_MAX + 1; in calculateWeightScale()
1488 uint64_t MaxWeight = *llvm::max_element(Weights); in createProfileWeights() local
1489 if (MaxWeight == 0) in createProfileWeights()
1493 uint64_t Scale = calculateWeightScale(MaxWeight); in createProfileWeights()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DCodeGenRegisters.cpp1796 unsigned MaxWeight = 0; in computeUberWeights() local
1809 MaxWeight = std::max(MaxWeight, Weight); in computeUberWeights()
1811 if (S.Weight != MaxWeight) { in computeUberWeights()
1814 << MaxWeight; in computeUberWeights()
1820 S.Weight = MaxWeight; in computeUberWeights()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp1698 uint32_t MaxWeight = 0; in generateMDProfMetadata() local
1741 if (Weight > MaxWeight) { in generateMDProfMetadata()
1742 MaxWeight = Weight; in generateMDProfMetadata()
1759 if (MaxWeight > 0 && in generateMDProfMetadata()