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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Nov 27 12:09:36 2019
New Revision: 278763

URL: https://gcc.gnu.org/viewcvs?rev=278763&root=gcc&view=rev
Log:
2019-11-27  Richard Biener  <rguent...@suse.de>

        Backport from mainline
        2019-10-25  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/92222
        * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
        (_slp_oprnd_info::second_pattern): Likewise.
        (_slp_oprnd_info::any_pattern): New.
        (vect_create_oprnd_info): Adjust.
        (vect_get_and_check_slp_defs): Compute whether any stmt is
        in a pattern.
        (vect_build_slp_tree_2): Avoid building up a node from scalars
        if any of the operand defs, not just the first, is in a pattern.

        * gcc.dg/torture/pr92222.c: New testcase.

Added:
    branches/gcc-9-branch/gcc/testsuite/gcc.dg/torture/pr92222.c
Modified:
    branches/gcc-9-branch/gcc/ChangeLog
    branches/gcc-9-branch/gcc/testsuite/ChangeLog
    branches/gcc-9-branch/gcc/tree-vect-slp.c

Reply via email to