Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DRegAllocEvictionAdvisor.h79 float MaxWeight = 0; ///< Maximum spill weight evicted. member
90 return std::tie(BrokenHints, MaxWeight) <
91 std::tie(O.BrokenHints, O.MaxWeight);
H A DRegAllocEvictionAdvisor.cpp253 Cost.MaxWeight = std::max(Cost.MaxWeight, Intf->weight()); in canEvictInterferenceBasedOnCost()
291 BestCost.MaxWeight = VirtReg.weight(); in tryFindEvictionCandidate()
H A DMIRSampleProfile.cpp199 uint32_t MaxWeight = std::numeric_limits<uint32_t>::max(); in setBranchProbs() local
201 if (BBWeight > MaxWeight) { in setBranchProbs()
202 Factor = BBWeight / MaxWeight + 1; in setBranchProbs()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp674 std::optional<uint32_t> MaxWeight; in getMaxEstimatedEdgeWeight() local
682 if (!MaxWeight || *MaxWeight < *Weight) in getMaxEstimatedEdgeWeight()
683 MaxWeight = Weight; in getMaxEstimatedEdgeWeight()
686 return MaxWeight; in getMaxEstimatedEdgeWeight()
864 auto MaxWeight = getMaxEstimatedEdgeWeight(LoopBB, successors(BB)); in computeEestimateBlockWeight() local
866 if (MaxWeight) in computeEestimateBlockWeight()
867 propagateEstimatedBlockWeight(LoopBB, DT, PDT, *MaxWeight, in computeEestimateBlockWeight()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenPGO.cpp1058 static uint64_t calculateWeightScale(uint64_t MaxWeight) { in calculateWeightScale() argument
1059 return MaxWeight < UINT32_MAX ? 1 : MaxWeight / UINT32_MAX + 1; in calculateWeightScale()
1099 uint64_t MaxWeight = *std::max_element(Weights.begin(), Weights.end()); in createProfileWeights() local
1100 if (MaxWeight == 0) in createProfileWeights()
1104 uint64_t Scale = calculateWeightScale(MaxWeight); in createProfileWeights()
/openbsd-src/gnu/llvm/llvm/utils/TableGen/
H A DCodeGenRegisters.cpp1721 unsigned MaxWeight = 0, Weight = 0; in computeUberWeights() local
1724 if (Weight > MaxWeight) in computeUberWeights()
1725 MaxWeight = Weight; in computeUberWeights()
1738 if (Weight > MaxWeight) in computeUberWeights()
1739 MaxWeight = Weight; in computeUberWeights()
1740 if (I->Weight != MaxWeight) { in computeUberWeights()
1742 << MaxWeight; in computeUberWeights()
1748 I->Weight = MaxWeight; in computeUberWeights()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp1695 uint32_t MaxWeight = 0; in generateMDProfMetadata() local
1736 if (Weight > MaxWeight) { in generateMDProfMetadata()
1737 MaxWeight = Weight; in generateMDProfMetadata()
1754 if (MaxWeight > 0 && in generateMDProfMetadata()