Commit ccae0c85 by Martin Liska Committed by Martin Liska

Fix memory leak introduced in r238336

	* tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.

From-SVN: r238705
parent 16b05965
2016-07-25 Martin Liska <mliska@suse.cz> 2016-07-25 Martin Liska <mliska@suse.cz>
* tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
2016-07-25 Martin Liska <mliska@suse.cz>
PR tree-optimization/71987 PR tree-optimization/71987
* tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
just for SSA_NAMEs. Fix GNU coding style. just for SSA_NAMEs. Fix GNU coding style.
......
...@@ -2119,8 +2119,11 @@ loop_only_exit_p (const struct loop *loop, const_edge exit) ...@@ -2119,8 +2119,11 @@ loop_only_exit_p (const struct loop *loop, const_edge exit)
{ {
for (bsi = gsi_start_bb (body[i]); !gsi_end_p (bsi); gsi_next (&bsi)) for (bsi = gsi_start_bb (body[i]); !gsi_end_p (bsi); gsi_next (&bsi))
if (stmt_can_terminate_bb_p (gsi_stmt (bsi))) if (stmt_can_terminate_bb_p (gsi_stmt (bsi)))
{
free (body);
return true; return true;
} }
}
free (body); free (body);
return true; return true;
......
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