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

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

https://gcc.gnu.org/g:61cd1c43b82dc9d4c3edf122d22887fdce340223

commit r15-5118-g61cd1c43b82dc9d4c3edf122d22887fdce340223
Author: Richard Biener <rguent...@suse.de>
Date:   Fri Nov 8 09:43:26 2024 +0100

    tree-optimization/117484 - issue with SLP discovery of permuted .MASK_LOAD

    When we do SLP discovery of a .MASK_LOAD for a dataref group with gaps
    the discovery for the mask will have gaps as well and this was
    unexpected in a few places.  The following re-organizes things
    slightly to accomodate for this.

            PR tree-optimization/117484
            * tree-vect-slp.cc (vect_build_slp_tree_2): Handle gaps in
            mask discovery.  Fix condition to release the load permutation.
            (vect_lower_load_permutations): Assert we get no load
            permutation for the unpermuted node.
            * tree-vect-slp-patterns.cc (linear_loads_p): Properly identify
            loads (without permutation).
            (compatible_complex_nodes_p): Likewise.

            * gcc.dg/vect/pr117484-1.c: New testcase.
            * gcc.dg/vect/pr117484-2.c: Likewise.

Reply via email to