[Bug tree-optimization/91293] [8/9 Regression] Wrong code with -O3 -mavx2

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 31 14:16:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91293

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Jul 31 14:15:37 2019
New Revision: 273934

URL: https://gcc.gnu.org/viewcvs?rev=273934&root=gcc&view=rev
Log:
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.

Added:
    trunk/gcc/testsuite/gcc.dg/vect/pr91293-1.c
    trunk/gcc/testsuite/gcc.dg/vect/pr91293-2.c
    trunk/gcc/testsuite/gcc.dg/vect/pr91293-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-slp.c


More information about the Gcc-bugs mailing list