diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-11-14 14:55:12 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-11-14 14:55:12 +0000 |
commit | 10116ec1c147a76522cafba6b6a5b4ed1cb37b77 (patch) | |
tree | 776dc1f9e2372ad4300b7120c178f4dfc3c7121a /gcc/tree-vectorizer.c | |
parent | e8738f4e9686203451fd11f05b268b8a31b95ebd (diff) | |
download | gcc-10116ec1c147a76522cafba6b6a5b4ed1cb37b77.zip gcc-10116ec1c147a76522cafba6b6a5b4ed1cb37b77.tar.gz gcc-10116ec1c147a76522cafba6b6a5b4ed1cb37b77.tar.bz2 |
Pass the data vector mode to get_mask_mode
This patch passes the data vector mode to get_mask_mode, rather than its
size and nunits. This is a bit simpler and allows targets to distinguish
between modes that happen to have the same size and number of elements.
2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* target.def (get_mask_mode): Take a vector mode itself as argument,
instead of properties about the vector mode.
* doc/tm.texi: Regenerate.
* targhooks.h (default_get_mask_mode): Update to reflect new
get_mode_mask interface.
* targhooks.c (default_get_mask_mode): Likewise. Use
related_int_vector_mode.
* optabs-query.c (can_vec_mask_load_store_p): Update call
to get_mask_mode.
* tree-vect-stmts.c (check_load_store_masking): Likewise, checking
first that the original mode really is a vector.
* tree.c (build_truth_vector_type_for): Likewise.
* config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
get_mode_mask interface.
(aarch64_expand_sve_vcond): Update call accordingly.
* config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
get_mode_mask interface.
* config/i386/i386.c (ix86_get_mask_mode): Likewise.
From-SVN: r278233
Diffstat (limited to 'gcc/tree-vectorizer.c')
0 files changed, 0 insertions, 0 deletions