]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/114297 - SLP reduction with early break fix
authorRichard Biener <rguenther@suse.de>
Mon, 11 Mar 2024 13:58:57 +0000 (14:58 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 12 Mar 2024 07:16:56 +0000 (08:16 +0100)
commitc0c57246d5b47459bdb488734bc2c004a92668b5
treeecf6b510c738c2cf3daf9221be24b1f624a0b66f
parentc4e5789cede6974b6483c0f82069ff80b5a547e4
tree-optimization/114297 - SLP reduction with early break fix

The following makes sure to pass in the SLP node for the live stmts
we are generating the reduction epilogue for to
vect_create_epilog_for_reduction.  This follows the previous fix for
the non-SLP path.

PR tree-optimization/114297
* tree-vect-loop.cc (vectorizable_live_operation): Pass in the
live stmts SLP node to vect_create_epilog_for_reduction.

* gcc.dg/vect/vect-early-break_123-pr114297.c: New testcase.
gcc/testsuite/gcc.dg/vect/vect-early-break_123-pr114297.c [new file with mode: 0644]
gcc/tree-vect-loop.cc