[Bug tree-optimization/103744] [12 Regression] ICE in operator[], at vec.h:889 since r12-5612-g10833849b55401a52f2334eb032a70beb688e9fc

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 17 14:18:50 GMT 2021


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

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

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

commit r12-6041-ge781cb93d7d908f1f4f1611d0034eccbd1478e91
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Fri Dec 17 14:18:39 2021 +0000

    vect: Fix multi-vector SLP gather loads [PR103744]

    This PR shows that I didn't properly test the multi-vector case when
    adding support for SLP gather loads.  The patch fixes that case using
    the same approach as we do for non-SLP cases: keep the scalar base
    the same, but iterate through the (also multi-vector) vector offsets.
    âvec_num * j + iâ is already used elsewhere as a way of handling both
    the multi-vector SLP case and the multi-vector non-SLP case.

    gcc/
            PR tree-optimization/103744
            * tree-vect-stmts.c (vectorizable_load): Handle multi-vector
            SLP gather loads.

    gcc/testsuite/
            PR tree-optimization/103744
            * gcc.dg/vect/pr103744-1.c: New test.
            * gcc.dg/vect/pr103744-2.c: Likewise.


More information about the Gcc-bugs mailing list