re PR testsuite/91821 (r275928 breaks gcc.target/powerpc/sad-vectorize-2.c)
authorRichard Biener <rguenther@suse.de>
Fri, 20 Sep 2019 09:54:54 +0000 (09:54 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 20 Sep 2019 09:54:54 +0000 (09:54 +0000)
commitd63eadac7db10d4846bdffa93fd164cb035fb102
treeef1dc5db6c4ed322f9ed8485cabbf001647679c7
parent9ba4312712a96eba938c9d280e57f71929cdef41
re PR testsuite/91821 (r275928 breaks gcc.target/powerpc/sad-vectorize-2.c)

2019-09-20  Richard Biener  <rguenther@suse.de>

PR tree-optimization/91821
* tree-vect-loop.c (check_reduction_path): Check we can compute
reduc_idx.
(vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
* tree-vect-patterns.c (vect_reassociating_reduction_p): Return
operands in canonical order.
* tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
STMT_VINFO_REDUC_IDX.
* tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
(STMT_VINFO_REDUC_IDX): Likewise.

From-SVN: r275996
gcc/ChangeLog
gcc/tree-vect-loop.c
gcc/tree-vect-patterns.c
gcc/tree-vectorizer.c
gcc/tree-vectorizer.h