diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2018-07-31 14:25:15 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2018-07-31 14:25:15 +0000 |
commit | eca52fdd6c570658e417ab38d25e0874d0c9c044 (patch) | |
tree | 72c5368b077155f63ecbf0caa5294cd2e38e88dc /gcc/tree-vect-loop.c | |
parent | a1824cfdcd12f2c928b2aa00278082c56e818497 (diff) | |
download | gcc-eca52fdd6c570658e417ab38d25e0874d0c9c044.zip gcc-eca52fdd6c570658e417ab38d25e0874d0c9c044.tar.gz gcc-eca52fdd6c570658e417ab38d25e0874d0c9c044.tar.bz2 |
[30/46] Use stmt_vec_infos rather than gimple stmts for worklists
2018-07-31 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* tree-vect-loop.c (vect_analyze_scalar_cycles_1): Change the type
of the worklist from a vector of gimple stmts to a vector of
stmt_vec_infos.
* tree-vect-stmts.c (vect_mark_relevant, process_use)
(vect_mark_stmts_to_be_vectorized): Likewise
From-SVN: r263145
Diffstat (limited to 'gcc/tree-vect-loop.c')
-rw-r--r-- | gcc/tree-vect-loop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 33e49c9..2f45d0d 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -474,7 +474,7 @@ vect_analyze_scalar_cycles_1 (loop_vec_info loop_vinfo, struct loop *loop) { basic_block bb = loop->header; tree init, step; - auto_vec<gimple *, 64> worklist; + auto_vec<stmt_vec_info, 64> worklist; gphi_iterator gsi; bool double_reduc; @@ -543,9 +543,9 @@ vect_analyze_scalar_cycles_1 (loop_vec_info loop_vinfo, struct loop *loop) /* Second - identify all reductions and nested cycles. */ while (worklist.length () > 0) { - gimple *phi = worklist.pop (); + stmt_vec_info stmt_vinfo = worklist.pop (); + gphi *phi = as_a <gphi *> (stmt_vinfo->stmt); tree def = PHI_RESULT (phi); - stmt_vec_info stmt_vinfo = vinfo_for_stmt (phi); if (dump_enabled_p ()) { |