Commit 734c1526 by Martin Liska Committed by Martin Liska

Fix memory leak in tree-if-conv.c

	* tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
	instead of vec as the vector is local to the function.

From-SVN: r235974
parent 9bdf001b
2016-05-06 Martin Liska <mliska@suse.cz>
* tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
instead of vec as the vector is local to the function.
2016-05-06 Jakub Jelinek <jakub@redhat.com>
* config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
......
......@@ -2361,7 +2361,7 @@ ifcvt_split_critical_edges (struct loop *loop, bool aggressive_if_conv)
gimple *stmt;
edge e;
edge_iterator ei;
vec<edge> critical_edges = vNULL;
auto_vec<edge> critical_edges;
/* Loop is not well formed. */
if (num <= 2 || loop->inner || !single_exit (loop))
......@@ -2381,7 +2381,6 @@ ifcvt_split_critical_edges (struct loop *loop, bool aggressive_if_conv)
bb->index, MAX_PHI_ARG_NUM);
free (body);
critical_edges.release ();
return false;
}
if (bb == loop->latch || bb_with_exit_edge_p (loop, bb))
......
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