Commit 93675444 by Jakub Jelinek Committed by Jakub Jelinek

re PR middle-end/56461 (GCC is leaking lots of memory)

	PR middle-end/56461
	* tree-vect-stmts.c (free_stmt_vec_info_vec): Call
	free_stmt_vec_info on any left-over stmt_vec_info in the vector.
	* tree-vect-loop.c (vect_create_epilog_for_reduction): Release
	inner_phis vector.

From-SVN: r196453
parent 3e492e9c
2013-03-05 Jakub Jelinek <jakub@redhat.com>
PR middle-end/56461
* tree-vect-stmts.c (free_stmt_vec_info_vec): Call
free_stmt_vec_info on any left-over stmt_vec_info in the vector.
* tree-vect-loop.c (vect_create_epilog_for_reduction): Release
inner_phis vector.
2013-03-05 Richard Biener <rguenther@suse.de> 2013-03-05 Richard Biener <rguenther@suse.de>
PR lto/56515 PR lto/56515
......
...@@ -4487,6 +4487,7 @@ vect_finalize_reduction: ...@@ -4487,6 +4487,7 @@ vect_finalize_reduction:
} }
scalar_results.release (); scalar_results.release ();
inner_phis.release ();
new_phis.release (); new_phis.release ();
} }
......
...@@ -5969,6 +5969,11 @@ init_stmt_vec_info_vec (void) ...@@ -5969,6 +5969,11 @@ init_stmt_vec_info_vec (void)
void void
free_stmt_vec_info_vec (void) free_stmt_vec_info_vec (void)
{ {
unsigned int i;
vec_void_p info;
FOR_EACH_VEC_ELT (stmt_vec_info_vec, i, info)
if (info != NULL)
free_stmt_vec_info (STMT_VINFO_STMT ((stmt_vec_info) info));
gcc_assert (stmt_vec_info_vec.exists ()); gcc_assert (stmt_vec_info_vec.exists ());
stmt_vec_info_vec.release (); stmt_vec_info_vec.release ();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment