diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2018-07-31 14:22:09 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2018-07-31 14:22:09 +0000 |
commit | 10681ce8cb6227ae5c11cc74ddf48f2fc5e6f87e (patch) | |
tree | 35855509f186bc71e3434bad3b0a5ae381027fc6 /gcc/tree-vectorizer.h | |
parent | e1bd72966309ac459a55e2bc64ad355272d402f5 (diff) | |
download | gcc-10681ce8cb6227ae5c11cc74ddf48f2fc5e6f87e.zip gcc-10681ce8cb6227ae5c11cc74ddf48f2fc5e6f87e.tar.gz gcc-10681ce8cb6227ae5c11cc74ddf48f2fc5e6f87e.tar.bz2 |
[13/46] Make STMT_VINFO_RELATED_STMT a stmt_vec_info
This patch changes STMT_VINFO_RELATED_STMT from a gimple stmt to a
stmt_vec_info.
2018-07-31 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* tree-vectorizer.h (_stmt_vec_info::related_stmt): Change from
a gimple stmt to a stmt_vec_info.
(is_pattern_stmt_p): Update accordingly.
* tree-vect-data-refs.c (vect_preserves_scalar_order_p): Likewise.
(vect_record_grouped_load_vectors): Likewise.
* tree-vect-loop.c (vect_determine_vf_for_stmt): Likewise.
(vect_fixup_reduc_chain, vect_update_vf_for_slp): Likewise.
(vect_model_reduction_cost): Likewise.
(vect_create_epilog_for_reduction): Likewise.
(vectorizable_reduction, vectorizable_induction): Likewise.
* tree-vect-patterns.c (vect_init_pattern_stmt): Likewise.
Return the stmt_vec_info for the pattern statement.
(vect_set_pattern_stmt): Update use of STMT_VINFO_RELATED_STMT.
(vect_split_statement, vect_mark_pattern_stmts): Likewise.
* tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
(vect_detect_hybrid_slp, vect_get_slp_defs): Likewise.
* tree-vect-stmts.c (vect_mark_relevant): Likewise.
(vect_get_vec_def_for_operand_1, vectorizable_call): Likewise.
(vectorizable_simd_clone_call, vect_analyze_stmt, new_stmt_vec_info)
(free_stmt_vec_info, vect_is_simple_use): Likewise.
From-SVN: r263128
Diffstat (limited to 'gcc/tree-vectorizer.h')
-rw-r--r-- | gcc/tree-vectorizer.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gcc/tree-vectorizer.h b/gcc/tree-vectorizer.h index 4109cd9..fb7b592 100644 --- a/gcc/tree-vectorizer.h +++ b/gcc/tree-vectorizer.h @@ -847,7 +847,7 @@ struct _stmt_vec_info { related_stmt of the "pattern stmt" points back to this stmt (which is the last stmt in the original sequence of stmts that constitutes the pattern). */ - gimple *related_stmt; + stmt_vec_info related_stmt; /* Used to keep a sequence of def stmts of a pattern stmt if such exists. The sequence is attached to the original statement rather than the @@ -1189,16 +1189,8 @@ get_later_stmt (gimple *stmt1, gimple *stmt2) static inline bool is_pattern_stmt_p (stmt_vec_info stmt_info) { - gimple *related_stmt; - stmt_vec_info related_stmt_info; - - related_stmt = STMT_VINFO_RELATED_STMT (stmt_info); - if (related_stmt - && (related_stmt_info = vinfo_for_stmt (related_stmt)) - && STMT_VINFO_IN_PATTERN_P (related_stmt_info)) - return true; - - return false; + stmt_vec_info related_stmt_info = STMT_VINFO_RELATED_STMT (stmt_info); + return related_stmt_info && STMT_VINFO_IN_PATTERN_P (related_stmt_info); } /* Return true if BB is a loop header. */ |