tree-vect-loop.c (vect_create_epilog_for_reduction): Use STMT_VINFO_REDUC_IDX from...
authorRichard Biener <rguenther@suse.de>
Mon, 28 Oct 2019 12:25:26 +0000 (12:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 28 Oct 2019 12:25:26 +0000 (12:25 +0000)
commite0c4f7fbd6a4ee8e3a1468514044bd941fa28522
treeab8cb91c02d4b31498048a68e4debf7b7e00af00
parentcb73e4e734e2a3fb8034137806a7c676b5d5f366
tree-vect-loop.c (vect_create_epilog_for_reduction): Use STMT_VINFO_REDUC_IDX from the actual stmt.

2019-10-28  Richard Biener  <rguenther@suse.de>

* tree-vect-loop.c (vect_create_epilog_for_reduction): Use
STMT_VINFO_REDUC_IDX from the actual stmt.
(vect_transform_reduction): Likewise.
(vectorizable_reduction): Compute the reduction chain length,
do not recompute the reduction operand index.  Remove no longer
necessary restriction for condition reduction chains.

From-SVN: r277513
gcc/ChangeLog
gcc/tree-vect-loop.c