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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:c2ab46f377313da5336748eb4fdc20020c047445

commit r12-9409-gc2ab46f377313da5336748eb4fdc20020c047445
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Mar 21 12:49:36 2023 +0100

    tree-optimization/109219 - avoid looking at STMT_SLP_TYPE

    The following avoids looking at STMT_SLP_TYPE apart from the only
    place needing it - transform and analysis of non-SLP loop stmts.
    In particular it doesn't have a reliable meaning on SLP representatives
    which are also passed as stmt_vinfo to vectorizable_* routines.  The
    proper way to check in those is to look for the slp_node argument
    instead.

            PR tree-optimization/109219
            * tree-vect-loop.cc (vectorizable_reduction): Check
            slp_node, not STMT_SLP_TYPE.
            * tree-vect-stmts.cc (vectorizable_condition): Likewise.
            * tree-vect-slp.cc (vect_slp_analyze_node_operations_1):
            Remove assertion on STMT_SLP_TYPE.

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

    (cherry picked from commit 26adc870e3675591050f37edab46850b97a3c122)

Reply via email to