[SLP][VECT] Add check to fix 96837

Richard Biener rguenther@suse.de
Wed Sep 30 06:27:35 GMT 2020


On Tue, 29 Sep 2020, Joel Hutton wrote:

>  Hi All,
> 
> The following patch adds a simple check to prevent slp stmts from vector constructors being rearranged. vect_attempt_slp_rearrange_stmts tries to rearrange to avoid a load permutation.
> 
> This fixes PR target/96837 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96827
> gcc/ChangeLog:

OK for trunk and branch(es)

Thanks,
Richard.

> 2020-09-29  Joel Hutton  <joel.hutton@arm.com>
> 
>         PR target/96837
>         * tree-vect-slp.c (vect_analyze_slp): Do not call vect_attempt_slp_rearrange_stmts for vector constructors.
> 
> gcc/testsuite/ChangeLog:
> 
> 2020-09-29  Joel Hutton  <joel.hutton@arm.com>
> 
>         PR target/96837
>         * gcc.dg/vect/bb-slp-49.c: New test.

-- 
Richard Biener <rguenther@suse.de>
SUSE Software Solutions Germany GmbH, Maxfeldstrasse 5, 90409 Nuernberg,
Germany; GF: Felix Imend


More information about the Gcc-patches mailing list