Re: [PATCH] tree-vect-generic: Tweak build_replicated_const [PR94980 2/3]

2020-05-11 Thread Richard Biener via Gcc-patches
On May 11, 2020 6:37:43 PM GMT+02:00, Richard Sandiford wrote: >This patch makes build_replicated_const take the number of bits >in VALUE rather than calculating the width from the element type. >The callers can then use vector_element_bits to calculate the >correct element size from the vector t

[PATCH] tree-vect-generic: Tweak build_replicated_const [PR94980 2/3]

2020-05-11 Thread Richard Sandiford
This patch makes build_replicated_const take the number of bits in VALUE rather than calculating the width from the element type. The callers can then use vector_element_bits to calculate the correct element size from the vector type. Tested individually on aarch64-linux-gnu and as a series on x86