Fix memory leak in vect_analyze_loop_form
commit1c1853a70f9422169190e65e568dcccbce02d95c
authorRichard Biener <rguenther@suse.de>
Thu, 18 Jan 2024 10:22:34 +0000 (18 11:22 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 18 Jan 2024 12:17:31 +0000 (18 13:17 +0100)
tree41cc2a5b25c55aeccb4d209372ff1de575e94e03
parent695f615f9836b10318d1fa2cd5aa18cebb3eeaca
Fix memory leak in vect_analyze_loop_form

The following fixes a memory leak in vect_analyze_loop_form which fails
to free the loop body it gets.  It also allows more countable exits,
matching what we can handle later, when we decide which exit to use
as main exit.  Finally some no longer applying comments are adjusted.

* tree-vect-loop.cc (vec_init_loop_exit_info): Adjust comment,
prefer all later exits we can handle.
(vect_analyze_loop_form): Free the allocated loop body.
Adjust comments.
gcc/tree-vect-loop.cc