tree-vect-data-refs.c (vect_find_stmt_data_reference): New function, combining stmt...
authorRichard Biener <rguenther@suse.de>
Fri, 25 May 2018 11:11:12 +0000 (11:11 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 25 May 2018 11:11:12 +0000 (11:11 +0000)
commit8e846c6670b85cd69a5760a604d8f9ce0dbc3730
tree4db30c2f8a4c9100b554917beeb46b515cf6af47
parent1623d9f346086582c49cb747c3dabd062e730c42
tree-vect-data-refs.c (vect_find_stmt_data_reference): New function, combining stmt data ref gathering and fatal analysis parts.

2018-05-25  Richard Biener  <rguenther@suse.de>

* tree-vect-data-refs.c (vect_find_stmt_data_reference): New
function, combining stmt data ref gathering and fatal analysis
parts.
(vect_analyze_data_refs): Remove now redudnant code and simplify.
* tree-vect-loop.c (vect_get_datarefs_in_loop): Factor out from
vect_analyze_loop_2 and use vect_find_stmt_data_reference.
* tree-vect-slp.c (vect_slp_bb): Use vect_find_stmt_data_reference.
* tree-vectorizer.h (vect_find_stmt_data_reference): Declare.

From-SVN: r260754
gcc/ChangeLog
gcc/tree-vect-data-refs.c
gcc/tree-vect-loop.c
gcc/tree-vect-slp.c
gcc/tree-vectorizer.h