Re: [PATCH] ira: Cap callee-saved register cost scale to 300

2025-02-03 Thread Jan Hubicka
> > > > #define REG_FREQ_FROM_BB(bb) ((optimize_function_for_size_p (cfun) > > > > \ > > > > || !cfun->cfg->count_max.initialized_p > > > > ()) \ > > > > ? REG_FREQ_MAX > > > > \ > > > >

Re: [PATCH] ira: Cap callee-saved register cost scale to 300

2025-02-03 Thread Jan Hubicka
> On Mon, Feb 3, 2025 at 5:21 PM Richard Biener > wrote: > > > > On Sun, Feb 2, 2025 at 9:29 AM H.J. Lu wrote: > > > > > > On Sun, Feb 2, 2025 at 4:20 PM Richard Biener > > > wrote: > > > > > > > > > > > > > > > > > Am 02.02.2025 um 08:59 schrieb H.J. Lu : > > > > > > > > > > On Sun, Feb 2, 202

Re: [PATCH] ira: Cap callee-saved register cost scale to 300

2025-02-03 Thread H.J. Lu
On Mon, Feb 3, 2025 at 5:21 PM Richard Biener wrote: > > On Sun, Feb 2, 2025 at 9:29 AM H.J. Lu wrote: > > > > On Sun, Feb 2, 2025 at 4:20 PM Richard Biener > > wrote: > > > > > > > > > > > > > Am 02.02.2025 um 08:59 schrieb H.J. Lu : > > > > > > > > On Sun, Feb 2, 2025 at 3:33 PM Richard Biene

Re: [PATCH] ira: Cap callee-saved register cost scale to 300

2025-02-03 Thread Richard Biener
On Sun, Feb 2, 2025 at 9:29 AM H.J. Lu wrote: > > On Sun, Feb 2, 2025 at 4:20 PM Richard Biener > wrote: > > > > > > > > > Am 02.02.2025 um 08:59 schrieb H.J. Lu : > > > > > > On Sun, Feb 2, 2025 at 3:33 PM Richard Biener > > > wrote: > > >> > > >> > > >> > > Am 02.02.2025 um 08:00 schrieb

Re: [PATCH] ira: Cap callee-saved register cost scale to 300

2025-02-02 Thread H.J. Lu
On Sun, Feb 2, 2025 at 4:20 PM Richard Biener wrote: > > > > > Am 02.02.2025 um 08:59 schrieb H.J. Lu : > > > > On Sun, Feb 2, 2025 at 3:33 PM Richard Biener > > wrote: > >> > >> > >> > Am 02.02.2025 um 08:00 schrieb H.J. Lu : > >>> > >>> Don't increase callee-saved register cost by 1000x,

Re: [PATCH] ira: Cap callee-saved register cost scale to 300

2025-02-02 Thread Richard Biener
> Am 02.02.2025 um 08:59 schrieb H.J. Lu : > > On Sun, Feb 2, 2025 at 3:33 PM Richard Biener > wrote: >> >> >> Am 02.02.2025 um 08:00 schrieb H.J. Lu : >>> >>> Don't increase callee-saved register cost by 1000x, which leads to that >>> callee-saved registers aren't used to preserve

Re: [PATCH] ira: Cap callee-saved register cost scale to 300

2025-02-02 Thread H.J. Lu
On Sun, Feb 2, 2025 at 3:33 PM Richard Biener wrote: > > > > > Am 02.02.2025 um 08:00 schrieb H.J. Lu : > > > > Don't increase callee-saved register cost by 1000x, which leads to that > > callee-saved registers aren't used to preserve local variable values > > across calls, by capping the scale t

Re: [PATCH] ira: Cap callee-saved register cost scale to 300

2025-02-01 Thread Richard Biener
> Am 02.02.2025 um 08:00 schrieb H.J. Lu : > > Don't increase callee-saved register cost by 1000x, which leads to that > callee-saved registers aren't used to preserve local variable values > across calls, by capping the scale to 300. >PR rtl-optimization/111673 >PR rtl-optimization/1

[PATCH] ira: Cap callee-saved register cost scale to 300

2025-02-01 Thread H.J. Lu
Don't increase callee-saved register cost by 1000x, which leads to that callee-saved registers aren't used to preserve local variable values across calls, by capping the scale to 300. PR rtl-optimization/111673 PR rtl-optimization/115932 PR rtl-optimization/116028 P