]> git.ipfire.org Git - people/ms/gcc.git/commit
tree-optimization/106841 - gather and hybrid SLP
authorRichard Biener <rguenther@suse.de>
Tue, 6 Sep 2022 08:08:44 +0000 (10:08 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 9 Sep 2022 09:49:40 +0000 (11:49 +0200)
commit41b4faa130a32b37debb1f92e3fa93b2fe8571fc
tree2d7351416d94cb1711830aee7f591c645a0e9b51
parente08dd36f90e74cd5be615b1ca82a38896434d48c
tree-optimization/106841 - gather and hybrid SLP

Hybrid SLP detection currently fails to consider a not direct
offset operand of a scatter/gather operation.  The following fixes
this.

PR tree-optimization/106841
* tree-vect-slp.cc (vect_detect_hybrid_slp): Also process
scatter/gather offset.

* g++.dg/vect/pr106841.cc: New testcase.

(cherry picked from commit e33e61d417eb5e981bb7d709f8681a2f55ed518a)
gcc/testsuite/g++.dg/vect/pr106841.cc [new file with mode: 0644]
gcc/tree-vect-slp.cc