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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Oct 28 13:42:03 2019
New Revision: 277516

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

        PR tree-optimization/92241
        * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
        we failed to update the reduction index do not use the pattern
        stmts for the reduction chain.
        (vectorizable_reduction): When the reduction chain is corrupt,
        fail.
        * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
        fail to update the reduction chain.

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

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr92241.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-loop.c
    trunk/gcc/tree-vect-patterns.c

Reply via email to