tree-optimization/97236 - fix bad use of VMAT_CONTIGUOUS
authorRichard Biener <rguenther@suse.de>
Thu, 1 Oct 2020 13:12:35 +0000 (15:12 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 1 Oct 2020 13:58:29 +0000 (15:58 +0200)
commit04b99da898a9817e72fedb4063589648b7961ac5
tree2c8558417f423a2cb1e0c416d6453d5e34bd3422
parent80a9c584e339c4f87a3f48ca6397d4a29b7e4ab6
tree-optimization/97236 - fix bad use of VMAT_CONTIGUOUS

This avoids using VMAT_CONTIGUOUS with single-element interleaving
when using V1mode vectors.  Instead keep VMAT_ELEMENTWISE but
continue to avoid load-lanes and gathers.

2020-10-01  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97236
* tree-vect-stmts.c (get_group_load_store_type): Keep
VMAT_ELEMENTWISE for single-element vectors.

* gcc.dg/vect/pr97236.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr97236.c [new file with mode: 0644]
gcc/tree-vect-stmts.c