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

--- Comment #7 from CVS 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:33a63257701c8d94ee375e32ff1837c989d8ded6

commit r11-6478-g33a63257701c8d94ee375e32ff1837c989d8ded6
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Jan 5 16:17:15 2021 +0100

    tree-optimization/98516 - fix SLP permute opt materialization

    When materializing on a VEC_PERM node we have to permute the
    incoming vectors, not the outgoing one.

    2021-01-05  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/98516
            * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
            lanes when materializing on a VEC_PERM node.
            (vectorizable_slp_permutation): Dump the permute properly.

            * gcc.dg/vect/bb-slp-pr98516-1.c: New testcase.
            * gcc.dg/vect/bb-slp-pr98516-2.c: Likewise.

Reply via email to