]> git.ipfire.org Git - thirdparty/gcc.git/commit
Do not cost the permute node that are part of SLP load-lanes
authorRichard Biener <rguenther@suse.de>
Fri, 8 Nov 2024 12:25:13 +0000 (13:25 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 10 Nov 2024 14:39:27 +0000 (15:39 +0100)
commit32cf28ccc9e77ce0e21db38fa1bdfe1b71bbd031
treed9676fc7f70f85844cd842e57cf2c9982d812508
parent730f28b081bea4a749f9b82902446731ec8faa93
Do not cost the permute node that are part of SLP load-lanes

There are some SVE testsuite fails when forcing SLP because costing
prevents VLA vectors from being used as we add permute cost for
the VEC_PERM nodes that are part of a SLP load-lanes node.  The
permutes only exist for representational reasons and pessimize SLP
vs non-SLP so the following makes sure to cost them as zero.

* tree-vect-slp.cc (vectorizable_slp_permutation_1): Return
zero for the permute nodes part of load-lanes.
gcc/tree-vect-slp.cc