Re: [PATCH] Fix wrong cost of MEM when addr is a lea.

2024-06-26 Thread Hongtao Liu
On Wed, Jun 26, 2024 at 4:02 PM Richard Biener wrote: > > On Wed, Jun 26, 2024 at 9:14 AM Hongtao Liu wrote: > > > > On Wed, Jun 26, 2024 at 2:52 PM Richard Biener > > wrote: > > > > > > On Wed, Jun 26, 2024 at 8:09 AM liuhongt wrote: > > > > > > > > 416.gamess regressed 4-6% on x86_64 since my

Re: [PATCH] Fix wrong cost of MEM when addr is a lea.

2024-06-26 Thread Richard Biener
On Wed, Jun 26, 2024 at 9:14 AM Hongtao Liu wrote: > > On Wed, Jun 26, 2024 at 2:52 PM Richard Biener > wrote: > > > > On Wed, Jun 26, 2024 at 8:09 AM liuhongt wrote: > > > > > > 416.gamess regressed 4-6% on x86_64 since my r15-882-g1d6199e5f8c1c0. > > > The commit adjust rtx_cost of mem to redu

Re: [PATCH] Fix wrong cost of MEM when addr is a lea.

2024-06-26 Thread Hongtao Liu
On Wed, Jun 26, 2024 at 2:52 PM Richard Biener wrote: > > On Wed, Jun 26, 2024 at 8:09 AM liuhongt wrote: > > > > 416.gamess regressed 4-6% on x86_64 since my r15-882-g1d6199e5f8c1c0. > > The commit adjust rtx_cost of mem to reduce cost of (add op0 disp). > > But Cost of ADDR could be cheaper tha

Re: [PATCH] Fix wrong cost of MEM when addr is a lea.

2024-06-25 Thread Richard Biener
On Wed, Jun 26, 2024 at 8:09 AM liuhongt wrote: > > 416.gamess regressed 4-6% on x86_64 since my r15-882-g1d6199e5f8c1c0. > The commit adjust rtx_cost of mem to reduce cost of (add op0 disp). > But Cost of ADDR could be cheaper than XEXP (addr, 0) when it's a lea. > It is the case in the PR, the p

[PATCH] Fix wrong cost of MEM when addr is a lea.

2024-06-25 Thread liuhongt
416.gamess regressed 4-6% on x86_64 since my r15-882-g1d6199e5f8c1c0. The commit adjust rtx_cost of mem to reduce cost of (add op0 disp). But Cost of ADDR could be cheaper than XEXP (addr, 0) when it's a lea. It is the case in the PR, the patch uses lower cost to enable more simplication and fix th