Calculate what to divide by to scale counts.
Declared in <llvm/IR/ProfDataUtils.h>
uint64_t
calculateCountScale(uint64_t MaxCount);
Given the maximum count, calculate a divisor that will scale all the weights to strictly less than std::numeric_limits<uint32_t>::max().
The divisor to use when scaling counts down to 32 bits.
| Name | Description |
|---|---|
| MaxCount | The largest count that will be scaled. |