]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/106081 - elide redundant permute
authorRichard Biener <rguenther@suse.de>
Wed, 26 Jul 2023 11:31:16 +0000 (13:31 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 26 Jul 2023 13:27:24 +0000 (15:27 +0200)
commit5d09fb683a8abce49dc0992f5102aa0189f8f632
treea3bc5c15e292c1054d464c07cd01fe2fd3f1fea3
parent386df7ce7b38ef00e28080a779ef2dfd6949cf15
tree-optimization/106081 - elide redundant permute

The following patch makes sure to elide a redundant permute that
can be merged with existing splats represented as load permutations
as we now do for non-grouped SLP loads.  This is the last bit
missing to fix this PR where the main fix was already done by
r14-2117-gdd86a5a69cbda4

PR tree-optimization/106081
* tree-vect-slp.cc (vect_optimize_slp_pass::start_choosing_layouts):
Assign layout -1 to splats.

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