]> git.ipfire.org Git - thirdparty/gcc.git/commit
Backport fix for PR/tree-optimization/97236 - fix bad use of VMAT_CONTIGUOUS
authorMatthias Klose <doko@ubuntu.com>
Tue, 6 Oct 2020 11:41:37 +0000 (13:41 +0200)
committerMatthias Klose <doko@ubuntu.com>
Tue, 6 Oct 2020 11:41:37 +0000 (13:41 +0200)
commit1ab88985631dd2c5a5e3b5c0dce47cf8b6ed2f82
treea77868af36752905d6761006e67478c4b7b0e61e
parent7cacf5a576675109f3b081cbd436d1fbadad776d
Backport fix for PR/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