diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2020-05-12 09:01:12 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2020-05-12 09:01:12 +0100 |
commit | 14605b6bd8c37fffd8065c5c3fe6b1b9d7b2a294 (patch) | |
tree | fef1c5025d2ab05315c5357596506ec5e8e55165 /gcc/ada/gcc-interface/utils.c | |
parent | d17a896da1e898928d337596d029f0ece0039d55 (diff) | |
download | gcc-14605b6bd8c37fffd8065c5c3fe6b1b9d7b2a294.zip gcc-14605b6bd8c37fffd8065c5c3fe6b1b9d7b2a294.tar.gz gcc-14605b6bd8c37fffd8065c5c3fe6b1b9d7b2a294.tar.bz2 |
tree-vect-generic: Tweak build_replicated_const [PR94980 2/3]
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.
2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
gcc/
PR tree-optimization/94980
* tree-vect-generic.c (build_replicated_const): Take the number
of bits as a parameter, instead of the type of the elements.
(do_plus_minus): Update accordingly, using vector_element_bits
to calculate the correct number of bits.
(do_negate): Likewise.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
0 files changed, 0 insertions, 0 deletions