Pass more vector types to append_pattern_def_seq

Programming / Compilers / GCC - rsandifo [138bc75d-0d04-0410-961f-82ee72b054a4] - 3 July 2018 10:04 EDT

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

2018-07-03 Richard Sandiford

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.

76f769a45fa Pass more vector types to append_pattern_def_seq
gcc/ChangeLog | 17 ++++++++
gcc/tree-vect-patterns.c | 108 ++++++++++++-----------------------------------
2 files changed, 43 insertions(+), 82 deletions(-)

Upstream: gcc.gnu.org


  • Share