Re: [PATCH] AArch64: Disable TARGET_CONST_ANCHOR

2025-06-23 Thread Richard Sandiford
Andrew Pinski writes: > On Fri, Jun 20, 2025, 4:47 PM Wilco Dijkstra wrote: > >> >> TARGET_CONST_ANCHOR appears to trigger too often, even on simple >> immediates. >> It inserts extra ADD/SUB instructions even when a single MOV exists. >> Disable it to improve overall code quality: on SPEC2017 it

Re: [PATCH] AArch64: Disable TARGET_CONST_ANCHOR

2025-06-20 Thread Andrew Pinski
On Fri, Jun 20, 2025, 4:47 PM Wilco Dijkstra wrote: > > TARGET_CONST_ANCHOR appears to trigger too often, even on simple > immediates. > It inserts extra ADD/SUB instructions even when a single MOV exists. > Disable it to improve overall code quality: on SPEC2017 it removes > 1850 ADD/SUB instruc

[PATCH] AArch64: Disable TARGET_CONST_ANCHOR

2025-06-20 Thread Wilco Dijkstra
TARGET_CONST_ANCHOR appears to trigger too often, even on simple immediates. It inserts extra ADD/SUB instructions even when a single MOV exists. Disable it to improve overall code quality: on SPEC2017 it removes 1850 ADD/SUB instructions and 630 spill instructions, and SPECINT is ~0.06% faster on