diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-11-14 15:05:37 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-11-14 15:05:37 +0000 |
commit | 1c84a2d25ecd4c03dde745f36a4762dd45f97c85 (patch) | |
tree | ade2b975bc48ad715b167c702ef02abc267644df /gcc/tree-vectorizer.h | |
parent | e021fb865564b62a10adb1e98f75b5ea05058047 (diff) | |
download | gcc-1c84a2d25ecd4c03dde745f36a4762dd45f97c85.zip gcc-1c84a2d25ecd4c03dde745f36a4762dd45f97c85.tar.gz gcc-1c84a2d25ecd4c03dde745f36a4762dd45f97c85.tar.bz2 |
Replace vec_info::vector_size with vec_info::vector_mode
This patch replaces vec_info::vector_size with vec_info::vector_mode,
but for now continues to use it as a way of specifying a single
vector size. This makes it easier for later patches to use
related_vector_mode instead.
2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* tree-vectorizer.h (vec_info::vector_size): Replace with...
(vec_info::vector_mode): ...this new field.
* tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
(vect_analyze_loop, vect_transform_loop): Likewise.
* tree-vect-loop-manip.c (vect_do_peeling): Likewise.
* tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
(vect_make_slp_decision, vect_slp_bb_region): Likewise.
* tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
* tree-vectorizer.c (try_vectorize_loop_1): Likewise.
gcc/testsuite/
* gcc.dg/vect/vect-tail-nomask-1.c: Update expected epilogue
vectorization message.
From-SVN: r278237
Diffstat (limited to 'gcc/tree-vectorizer.h')
-rw-r--r-- | gcc/tree-vectorizer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-vectorizer.h b/gcc/tree-vectorizer.h index a6ddaaf..f6efed1 100644 --- a/gcc/tree-vectorizer.h +++ b/gcc/tree-vectorizer.h @@ -335,9 +335,9 @@ public: /* Cost data used by the target cost model. */ void *target_cost_data; - /* The vector size for this loop in bytes, or 0 if we haven't picked - a size yet. */ - poly_uint64 vector_size; + /* If we've chosen a vector size for this vectorization region, + this is one mode that has such a size, otherwise it is VOIDmode. */ + machine_mode vector_mode; private: stmt_vec_info new_stmt_vec_info (gimple *stmt); |