re PR tree-optimization/91293 (Wrong code with -O3 -mavx2)
commit2153fa7b60a430970cfebade3b04c6a4dd3e83f6
authorRichard Biener <rguenther@suse.de>
Wed, 31 Jul 2019 14:15:37 +0000 (31 14:15 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 31 Jul 2019 14:15:37 +0000 (31 14:15 +0000)
tree63dcee9137c897be3f86532c87d90d04734f9920
parent428642b132a4f2ce6c368398ec7f2ff307f33f8a
re PR tree-optimization/91293 (Wrong code with -O3 -mavx2)

2019-07-31  Richard Biener  <rguenther@suse.de>

PR tree-optimization/91293
* tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
of reduction stmts.

* gcc.dg/vect/pr91293-1.c: New testcase.
* gcc.dg/vect/pr91293-2.c: Likewise.
* gcc.dg/vect/pr91293-3.c: Likewise.

From-SVN: r273934
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr91293-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr91293-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr91293-3.c [new file with mode: 0644]
gcc/tree-vect-slp.c