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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Jul  3 13:44:13 2017
New Revision: 249919

URL: https://gcc.gnu.org/viewcvs?rev=249919&root=gcc&view=rev
Log:
2017-07-03  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/60510
        * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
        the scalar reduction PHI and use it.
        (vectorizable_reduction): Properly guard the single_defuse_cycle
        path for non-SLP reduction chains where we cannot use it.
        Rework reduc_def/index and vector type deduction.  Rework
        vector operand gathering during reduction op code-gen.
        * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
        chains dissolve the chain and leave it to non-SLP reduction
        handling.

        * gfortran.dg/vect/pr60510.f: New testcase.

Added:
    trunk/gcc/testsuite/gfortran.dg/vect/pr60510.f
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-loop.c
    trunk/gcc/tree-vect-slp.c

Reply via email to