]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/116083 - improve behavior when SLP discovery limit is reached
authorRichard Biener <rguenther@suse.de>
Thu, 25 Jul 2024 11:39:49 +0000 (13:39 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 25 Jul 2024 13:14:32 +0000 (15:14 +0200)
commit66240bfc1cc9c1f1b5a9d0ebf92be70a9ab1be5c
tree30205d41dccea562b4625efb7d48be51310b2195
parent1066a95aa33eee2d2bd9c8324f34dedb967f338c
tree-optimization/116083 - improve behavior when SLP discovery limit is reached

The following avoids some useless work when the SLP discovery limit
is reached, for example allocating a node to cache the failure
and starting discovery on split store groups when analyzing BBs.

It does not address the issue in the PR which is a gratious budget
for discovery when the store group size approaches the number of
overall statements.

PR tree-optimization/116083
* tree-vect-slp.cc (vect_build_slp_tree): Do not allocate
a discovery fail node when we reached the discovery limit.
(vect_build_slp_instance): Terminate early when the
discovery limit is reached.
gcc/tree-vect-slp.cc