Re: [PATCH] [riscv] vec_dup immediate constants in pred_broadcast expand [PR118182]

2025-04-18 Thread Jeff Law
On 4/12/25 12:41 AM, Alexandre Oliva wrote: pr118182-2.c fails on gcc-14 because it lacks the late_combine passes, particularly the one that runs after register allocation. Even in the trunk, the predicate broadcast for the add reduction is expanded and register-allocated as _zvfh, taking up

Re: [PATCH] [riscv] vec_dup immediate constants in pred_broadcast expand [PR118182]

2025-04-14 Thread Jeff Law
On 4/13/25 11:03 PM, Alexandre Oliva wrote: On Apr 12, 2025, Jeff Law wrote: for gcc/ChangeLog PR target/118182 * config/riscv/vector.md (@pred_broadcast): Expand to _zero and _imm variants without vec_duplicate. I'd said this should tend to wait for gcc-16 since it doesn't fix a regressi

Re: [PATCH] [riscv] vec_dup immediate constants in pred_broadcast expand [PR118182]

2025-04-13 Thread Alexandre Oliva
On Apr 12, 2025, Jeff Law wrote: >> for gcc/ChangeLog >> PR target/118182 >> * config/riscv/vector.md (@pred_broadcast): Expand to >> _zero and _imm variants without vec_duplicate. > I'd said this should tend to wait for gcc-16 since it doesn't fix a > regression. That works for me. Technicall

Re: [PATCH] [riscv] vec_dup immediate constants in pred_broadcast expand [PR118182]

2025-04-12 Thread Jeff Law
On 4/12/25 12:41 AM, Alexandre Oliva wrote: pr118182-2.c fails on gcc-14 because it lacks the late_combine passes, particularly the one that runs after register allocation. Even in the trunk, the predicate broadcast for the add reduction is expanded and register-allocated as _zvfh, taking up

[PATCH] [riscv] vec_dup immediate constants in pred_broadcast expand [PR118182]

2025-04-11 Thread Alexandre Oliva
pr118182-2.c fails on gcc-14 because it lacks the late_combine passes, particularly the one that runs after register allocation. Even in the trunk, the predicate broadcast for the add reduction is expanded and register-allocated as _zvfh, taking up an unneeded scalar register to hold the constan