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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tamar Christina <tnfch...@gcc.gnu.org>:

https://gcc.gnu.org/g:6cc8aa65fdeaefe9774d5e0d4e72c91f52313be1

commit r12-4846-g6cc8aa65fdeaefe9774d5e0d4e72c91f52313be1
Author: Tamar Christina <tamar.christ...@arm.com>
Date:   Tue Nov 2 13:26:36 2021 +0000

    middle-end: Fix PR103007, add missing check on complex fms detection.

    The complex FMS detection is missing a check on if the nodes of the
VEC_PERM
    has the amount of children we expect before it recurses.

    This check is there on MUL and FMA but was missing for FMS, due to this the
    compiler goes on further than it should and hits an assert.

    gcc/ChangeLog:

            PR tree-optimization/103007
            * tree-vect-slp-patterns.c (complex_fms_pattern::matches): Add elem
            check.

    gcc/testsuite/ChangeLog:

            PR tree-optimization/103007
            * g++.dg/pr103007.C: New test.

Reply via email to