diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2018-07-31 14:23:34 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2018-07-31 14:23:34 +0000 |
commit | f698fccf099a69415619858062431c9383caf070 (patch) | |
tree | b6feb44b4ea43dc76e88f7c5f85471d232ce0b73 /gcc/tree-vectorizer.h | |
parent | bffb8014d0566af64c3cd5c7afac21c125a14df2 (diff) | |
download | gcc-f698fccf099a69415619858062431c9383caf070.zip gcc-f698fccf099a69415619858062431c9383caf070.tar.gz gcc-f698fccf099a69415619858062431c9383caf070.tar.bz2 |
[21/46] Make grouped_stores and reduction_chains use stmt_vec_infos
This patch changes the SLP lists grouped_stores and reduction_chains
from auto_vec<gimple *> to auto_vec<stmt_vec_info>. It was easier
to do them together due to the way vect_analyze_slp is structured.
2018-07-31 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* tree-vectorizer.h (vec_info::grouped_stores): Change from
an auto_vec<gimple *> to an auto_vec<stmt_vec_info>.
(_loop_vec_info::reduction_chains): Likewise.
* tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Update
accordingly.
* tree-vect-slp.c (vect_analyze_slp): Likewise.
From-SVN: r263136
Diffstat (limited to 'gcc/tree-vectorizer.h')
-rw-r--r-- | gcc/tree-vectorizer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-vectorizer.h b/gcc/tree-vectorizer.h index fe49843..24020d2 100644 --- a/gcc/tree-vectorizer.h +++ b/gcc/tree-vectorizer.h @@ -259,7 +259,7 @@ struct vec_info { /* All interleaving chains of stores, represented by the first stmt in the chain. */ - auto_vec<gimple *> grouped_stores; + auto_vec<stmt_vec_info> grouped_stores; /* Cost data used by the target cost model. */ void *target_cost_data; @@ -479,7 +479,7 @@ typedef struct _loop_vec_info : public vec_info { /* All reduction chains in the loop, represented by the first stmt in the chain. */ - auto_vec<gimple *> reduction_chains; + auto_vec<stmt_vec_info> reduction_chains; /* Cost vector for a single scalar iteration. */ auto_vec<stmt_info_for_cost> scalar_cost_vec; |