Pass more vector types to append_pattern_def_seq
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 3 Jul 2018 10:04:28 +0000 (10:04 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 3 Jul 2018 10:04:28 +0000 (10:04 +0000)
commit776bfceac8ba24bacd1e76fc768e9b2b10c0e81c
treea67ec26fc6816b67c271c58a8fbbfc0268021eb9
parent9c58fb7aa5e719a3ce9acd94740371e139c035be
Pass more vector types to append_pattern_def_seq

The PR85694 series added a vectype argument to append_pattern_def_seq.
This patch makes more callers use it.

2018-07-03  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-vect-patterns.c (vect_recog_rotate_pattern)
(vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern)
(vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast)
(adjust_bool_pattern, vect_recog_bool_pattern): Pass the vector
type to append_pattern_def_seq instead of creating a stmt_vec_info
directly.
(build_mask_conversion): Likewise.  Remove vinfo argument.
(vect_add_conversion_to_patterm): Likewise, renaming to...
(vect_add_conversion_to_pattern): ...this.
(vect_recog_mask_conversion_pattern): Update call to
build_mask_conversion.  Pass the vector type to
append_pattern_def_seq here too.
(vect_recog_gather_scatter_pattern): Update call to
vect_add_conversion_to_pattern.

From-SVN: r262338
gcc/ChangeLog
gcc/tree-vect-patterns.c