]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/117567 - make SLP reassoc resilent against NULL lanes
authorRichard Biener <rguenther@suse.de>
Thu, 14 Nov 2024 09:17:23 +0000 (10:17 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 14 Nov 2024 10:36:03 +0000 (11:36 +0100)
commitf56343c5ea9a11fa740e0330ec121b826e349879
tree271d20c155ba36cfcc4e0a5b257d3f12b2f0ce24
parent13a966d56fe60418cf88c11cbd45797f1cbfed5f
tree-optimization/117567 - make SLP reassoc resilent against NULL lanes

The following tries to make the SLP chain association code resilent
against not present lanes (the other option would have been to disable
it in this case).  Not present lanes can now more widely appear as
part of mask load SLP discovery when there is gaps involved.  Requiring
a present first lane shouldn't be a restriction since in unpermuted
state all DR groups have their first lane not a gap.

PR tree-optimization/117567
* tree-vect-slp.cc (vect_build_slp_tree_2): Handle not present
lanes when doing re-association.

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