diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-09-05 19:57:47 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-09-05 19:57:47 +0000 |
commit | 3981fbb65a43dff3a81ebc32c94d6f86bb4f9783 (patch) | |
tree | 8affdf594e34f746a57a31d85951478c8b5be805 /gcc/tree.c | |
parent | 9da15d4097fa2fde5c2a5f1681db8fd04488a563 (diff) | |
download | gcc-3981fbb65a43dff3a81ebc32c94d6f86bb4f9783.zip gcc-3981fbb65a43dff3a81ebc32c94d6f86bb4f9783.tar.gz gcc-3981fbb65a43dff3a81ebc32c94d6f86bb4f9783.tar.bz2 |
Make targetm.get_mask_mode return an opt_mode
...for consistency with mode_for_vector.
2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
gcc/
* target.def (get_mask_mode): Change return type to opt_mode.
Expand commentary.
* doc/tm.texi: Regenerate.
* targhooks.h (default_get_mask_mode): Return an opt_mode.
* targhooks.c (default_get_mask_mode): Likewise.
* config/i386/i386.c (ix86_get_mask_mode): Likewise.
* optabs-query.c (can_vec_mask_load_store_p): Update use of
targetm.get_mask_mode.
* tree.c (build_truth_vector_type): Likewise.
From-SVN: r251731
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -10243,10 +10243,8 @@ build_vector_type (tree innertype, int nunits) tree build_truth_vector_type (unsigned nunits, unsigned vector_size) { - machine_mode mask_mode = targetm.vectorize.get_mask_mode (nunits, - vector_size); - - gcc_assert (mask_mode != VOIDmode); + machine_mode mask_mode + = targetm.vectorize.get_mask_mode (nunits, vector_size).else_blk (); unsigned HOST_WIDE_INT vsize; if (mask_mode == BLKmode) |