]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/107247 - reduce SLP reduction accumulator
authorRichard Biener <rguenther@suse.de>
Thu, 13 Oct 2022 12:56:01 +0000 (14:56 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 13 Oct 2022 14:28:12 +0000 (16:28 +0200)
commite5139d18dfb8130876ea59178e8471fb1b34bb80
tree6e762f847c382d2bbf720c37245c89e85d59fdf4
parent4b7966191a69238c6d6fd5537b3e77c3a4027eb2
tree-optimization/107247 - reduce SLP reduction accumulator

The following makes sure to reduce a multi-vector SLP reduction
accumulator to a single vector using vector operations if
easily possible (if the number of lanes in the vector type is
a multiple of the number of scalar accumulators).

PR tree-optimization/107247
* tree-vect-loop.cc (vect_create_epilog_for_reduction):
Reduce multi vector SLP reduction accumulators.  Check
the adjusted number of accumulator vectors against
one for the re-use in the epilogue.
gcc/tree-vect-loop.cc