]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix leak of SLP nodes when building store interleaving
authorRichard Biener <rguenther@suse.de>
Wed, 28 Aug 2024 09:04:07 +0000 (11:04 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 28 Aug 2024 10:44:46 +0000 (12:44 +0200)
commit04065d8c3083f76f877dc62d56807a7d3638be69
treed6feae62b574ddac89d784f4213f38f9099d527a
parentad895a28905c143ec731741cc93ebb340f59bfa8
Fix leak of SLP nodes when building store interleaving

The following fixes a leak of the discovered single-lane store
SLP nodes from which we only use their children.  This uncovers
a latent reference counting issue in the interleaving build where
we fail to increment their reference count.

* tree-vect-slp.cc (vect_build_slp_store_interleaving):
Fix reference counting.
(vect_build_slp_instance): Release rhs_nodes.
gcc/tree-vect-slp.cc