On Thu Jul 9, 2026 at 2:45 PM CEST, Richard Biener <[email protected]> wrote:
> On Thu, 9 Jul 2026, Michal Jires wrote:
>
>> Cache partitioning asserts that {min,max}_partition_size parameter
>> cannot be 0 to prevent later divisions by zero. This is needlessly
>> strict, we can clamp the value to 1 to get reasonable/expected behavior.
>
> Can you instead add IntegerRage(1, 2147483647) to the params in
> param.opt?
>

Both {min,max}_partition_size currently work with 0 with the default
balanced partitioning, and likely someone uses it.

And both values make some sense:
min_partition_size=0 -> there is no minimal partition size
max_partition_size=0 -> put every function into its own partition

Both seem to be an expected outcome of approaching/reaching 0.

Michal

Reply via email to