tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add reduction chains to LOOP_...
authorRichard Biener <rguenther@suse.de>
Thu, 29 Jun 2017 14:04:02 +0000 (14:04 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 29 Jun 2017 14:04:02 +0000 (14:04 +0000)
commit0630a4ecda602a90e978c3285cf1028e92ff5e8b
treecc5cefd595920573102156822f21d901451a76c1
parentf76b422479df586a93a0a2eaac748b59923d6e97
tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add reduction chains to LOOP_VINFO_REDUCTIONS.

2017-06-29  Richard Biener  <rguenther@suse.de>

* tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
reduction chains to LOOP_VINFO_REDUCTIONS.
* tree-vect-slp.c (vect_analyze_slp): Continue looking for
SLP reductions after processing reduction chains.

* gcc.dg/vect/slp-reduc-8.c: New testcase.

From-SVN: r249785
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/slp-reduc-8.c [new file with mode: 0644]
gcc/tree-vect-loop.c
gcc/tree-vect-slp.c