poly_int: vec_perm_indices element type
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 3 Jan 2018 08:59:18 +0000 (08:59 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 3 Jan 2018 08:59:18 +0000 (08:59 +0000)
commit6b0630fbe8c34255f2739f63a8d3e5b636020bf4
treee12d59269ca650f27b7141a5e825d503877ad63c
parent9f61be58cec631ded93e6b71940dacd14ce3f3f5
poly_int: vec_perm_indices element type

This patch changes the vec_perm_indices element type from HOST_WIDE_INT
to poly_int64, so that it can represent indices into a variable-length
vector.

2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* vec-perm-indices.h (vec_perm_builder): Change element type
from HOST_WIDE_INT to poly_int64.
(vec_perm_indices::element_type): Update accordingly.
(vec_perm_indices::clamp): Handle polynomial element_types.
* vec-perm-indices.c (vec_perm_indices::series_p): Likewise.
(vec_perm_indices::all_in_range_p): Likewise.
(tree_to_vec_perm_builder): Check for poly_int64 trees rather
than shwi trees.
* vector-builder.h (vector_builder::stepped_sequence_p): Handle
polynomial vec_perm_indices element types.
* int-vector-builder.h (int_vector_builder::equal_p): Likewise.
* fold-const.c (fold_vec_perm): Likewise.
* optabs.c (shift_amt_for_vec_perm_mask): Likewise.
* tree-vect-generic.c (lower_vec_perm): Likewise.
* tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
* config/aarch64/aarch64.c (aarch64_evpc_tbl): Cast d->perm
element type to HOST_WIDE_INT.

From-SVN: r256164
gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/fold-const.c
gcc/int-vector-builder.h
gcc/optabs.c
gcc/tree-vect-generic.c
gcc/tree-vect-slp.c
gcc/vec-perm-indices.c
gcc/vec-perm-indices.h
gcc/vector-builder.h