tree-optimization/111915 - mixing grouped and non-grouped accesses
commit00eb0812e6464307f9f971d2a743d720015e70cf
authorRichard Biener <rguenther@suse.de>
Mon, 23 Oct 2023 11:42:53 +0000 (23 13:42 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 23 Oct 2023 13:30:02 +0000 (23 15:30 +0200)
tree3829398b5d3df5ac8b7c0e8bf18ff531c8e374b0
parent738d44348e7392a9f8e370afa3a9d8c24ee080cd
tree-optimization/111915 - mixing grouped and non-grouped accesses

The change to allow SLP of non-grouped accesses failed to check
for the case of mixing with grouped accesses.

PR tree-optimization/111915
* tree-vect-slp.cc (vect_build_slp_tree_1): Check all
accesses are either grouped or not.

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