]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix memory leak in vect_cse_slp_nodes
authorRichard Biener <rguenther@suse.de>
Tue, 8 Oct 2024 12:24:27 +0000 (14:24 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 9 Oct 2024 07:43:29 +0000 (09:43 +0200)
commitfd883919b2644c16a6bb00ba39bcba98cc26979d
tree769321d7aa92dad55bceb0d61f67292a9a31ae19
parent4b152f62e4acff41c6d0f1423f7f50e7a0528b5b
Fix memory leak in vect_cse_slp_nodes

The following avoids copying scalar stmts again for the re-lookup
of the slot to replace the NULL guard with node.

* tree-vect-slp.cc (vect_cse_slp_nodes): Fix memory leak.
gcc/tree-vect-slp.cc