]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/116791 - Elementwise SLP vectorization
authorRichard Biener <rguenther@suse.de>
Mon, 23 Sep 2024 08:13:17 +0000 (10:13 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 23 Sep 2024 09:52:27 +0000 (11:52 +0200)
commit723f7b6db841c1a101a2f5b3b6273d8449dae39e
tree76276a953028929ec657d1eedc78ef8c39a2d810
parentdfb750798b07e7f412d52c22145ca8bce1911ac8
tree-optimization/116791 - Elementwise SLP vectorization

The following restricts the elementwise SLP vectorization to the
single-lane case which is the reason I enabled it to avoid regressions
with non-SLP.  The PR shows that multi-line SLP loads with elementwise
accesses require work, I'll open a new bug to track this for the
future.

PR tree-optimization/116791
* tree-vect-stmts.cc (get_group_load_store_type): Only
fall back to elementwise access for single-lane SLP, restore
hard failure mode for other cases.

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