Home | History | Annotate | Download | only in CodeGen

Lines Matching full:weights

823 /// \brief Calculate what to divide by to scale weights.
826 /// weights to strictly less than UINT32_MAX.
849 // Check for empty weights.
862 CodeGenFunction::createProfileWeights(ArrayRef<uint64_t> Weights) {
863 // We need at least two elements to create meaningful weights.
864 if (Weights.size() < 2)
867 // Check for empty weights.
868 uint64_t MaxWeight = *std::max_element(Weights.begin(), Weights.end());
876 ScaledWeights.reserve(Weights.size());
877 for (uint64_t W : Weights)