On 7/9/2026 2:15 AM, Richard Biener wrote:
On Wed, Jun 24, 2026 at 4:28 PM Jovan Dmitrovic
<[email protected]> wrote:
In function ivopts_estimate_reg_pressure, return zero if there are
enough registers available so that spilling is not necessary.
This is OK.  And OK to push independently of 2/3 or 3/3.

It might be contrary to how we deal with available
register costs in the other cases but there's no target cost for
registers when we have enough of them in target_cfgloop.
Assuming zero cost makes as much sense as one, costing
n_new instead of <whatever factor> * regs_needed doesn't,
so the proposed result is strictly better from a logical point.
It's the most extreme, so most likely to show up issues if
there are any.
I've pushed this.

jeff

Reply via email to