re PR tree-optimization/88315 (SAD and DOT_PROD SLP reductions with initial value...
authorRichard Biener <rguenther@suse.de>
Tue, 4 Dec 2018 08:23:40 +0000 (08:23 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 4 Dec 2018 08:23:40 +0000 (08:23 +0000)
commit056775650ac086fb069e00415bf262e22f7579c5
tree3778a07ed12e95342c549c938b887ca48a910c6f
parent4b8caa08fec515d6484de0af239bb3069c975ed3
re PR tree-optimization/88315 (SAD and DOT_PROD SLP reductions with initial value != 0 create wrong code)

2018-12-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/88315
* tree-vect-loop.c (get_initial_defs_for_reduction): Simplify
and fix initialization vector for SAD and DOT_PROD SLP reductions.

* gcc.dg/vect/slp-reduc-sad.c: Adjust to provide non-trivial
initial value.

From-SVN: r266771
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/slp-reduc-sad.c
gcc/tree-vect-loop.c