]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/116352 - amend previous fix
authorRichard Biener <rguenther@suse.de>
Thu, 8 May 2025 08:56:16 +0000 (10:56 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 6 Jun 2025 07:49:33 +0000 (09:49 +0200)
commit7da2b6ddf3a8371b585595231cddcb1ad0942ea4
treee7c496912cb69a75cdbfad35ae8c6ba414723d93
parent05ef04d644c1a460b3af266a7766001c93fe1a6a
tree-optimization/116352 - amend previous fix

The previous fix restricted external vector builds to defs from
the same basic-block.  That turns out too restrictive so we have
to mitigate the original issue in a different way which is
restricting it to the original case where all defs are in the
same basic-block.

PR tree-optimization/116352
* tree-vect-slp.cc (vect_build_slp_tree_2): When compressing
operands from a two-operator node make sure the resulting
operation does not mix defs from different basic-blocks.

(cherry picked from commit 1e8bd720b1a618a39e2a41eec05e935c32d295f3)
gcc/tree-vect-slp.cc