[PATCH] Fix PR94401 by considering reverse overrun

Richard Biener richard.guenther@gmail.com
Thu Apr 2 09:21:33 GMT 2020


On Thu, Apr 2, 2020 at 9:15 AM Kewen.Lin <linkw@linux.ibm.com> wrote:
>
> Hi,
>
> The commit r10-7415 brings scalar type consideration
> to eliminate epilogue peeling for gaps, but it exposed
> one problem that the current handling doesn't consider
> the memory access type VMAT_CONTIGUOUS_REVERSE, for
> which the overrun happens on low address side.  This
> patch is to make the code take care of it by updating
> the offset and construction element order accordingly.
>
> Bootstrapped/regtested on powerpc64le-linux-gnu P8
> and aarch64-linux-gnu.

OK with the formatting changes suggested by Jakub.

Richard.

> BR,
> Kewen
> -----------
> gcc/ChangeLog
>
> 2020-04-02  Kewen Lin  <linkw@gcc.gnu.org>
>
>         PR tree-optimization/94401
>         * tree-vect-loop.c (vectorizable_load): Handle VMAT_CONTIGUOUS_REVERSE
>         access type when loading halves of vector to avoid peeling for gaps.


More information about the Gcc-patches mailing list