vectorizer: add _bb_vec_info::region_stmts and reverse_region_stmts
authorMartin Liska <mliska@suse.cz>
Thu, 11 Jun 2020 11:25:40 +0000 (13:25 +0200)
committerMartin Liska <mliska@suse.cz>
Thu, 18 Jun 2020 14:58:27 +0000 (16:58 +0200)
commit72cb486456a39524c6f822327ba8654b0221ff4c
tree23e189d3c2bbf03b63ddf6c07c31c29dd2684b03
parentbd0a89dcd8d13ad78950eb24eb3d1680f81ba95a
vectorizer: add _bb_vec_info::region_stmts and reverse_region_stmts

gcc/ChangeLog:

* coretypes.h (struct iterator_range): New type.
* tree-vect-patterns.c (vect_determine_precisions): Use
range-based iterator.
(vect_pattern_recog): Likewise.
* tree-vect-slp.c (_bb_vec_info):  Likewise.
(_bb_vec_info::~_bb_vec_info): Likewise.
(vect_slp_check_for_constructors): Likewise.
* tree-vectorizer.h:Add new iterators
and functions that use it.
gcc/coretypes.h
gcc/tree-vect-patterns.c
gcc/tree-vect-slp.c
gcc/tree-vectorizer.h