Re: [PATCH 1/2] Add support for conditional xorsign [PR96373]

2023-01-27 Thread Richard Biener via Gcc-patches
On Fri, 27 Jan 2023, Richard Sandiford wrote: > This patch is an optimisation, but it's also a prerequisite for > fixing PR96373 without regressing vect-xorsign_exec.c. > > Currently the vectoriser vectorises: > > for (i = 0; i < N; i++) > r[i] = a[i] * __builtin_copysignf (1.0f, b[i]); >

[PATCH 1/2] Add support for conditional xorsign [PR96373]

2023-01-27 Thread Richard Sandiford via Gcc-patches
This patch is an optimisation, but it's also a prerequisite for fixing PR96373 without regressing vect-xorsign_exec.c. Currently the vectoriser vectorises: for (i = 0; i < N; i++) r[i] = a[i] * __builtin_copysignf (1.0f, b[i]); as two unconditional operations (copysign and mult). tree-ssa-