Hello,

On Tue, 28 Jan 2025, Surya Kumari Jangala wrote:

> The following patch has been bootstrapped and regtested on 
> powerpc64le-linux, aarch64-linux and x86_64-linux. This patch is a 
> proposed fix for PR118533. Request you to please review the patch.

A full insn-scan should not be needed for that.  df_regs_ever_live(x) 
should be true for a hardreg 'x' randomly being already used in the 
function before IRA (after df is initialized which it should be in 
ira_color).  (df_hard_reg_used_p(x) might also be acceptable here, 
depending on what's precisely needed)

So, just test for that in addition to allocated_hardreg_p[] within 
calculate_saved_nregs?


Ciao,
Michael.

Reply via email to