Commit b6cdba27 by Uttam Pawar Committed by David Edelsohn

re PR middle-end/25933 (memory leaks)

2006-01-31  Uttam Pawar  <uttamp@us.ibm.com>

        PR middle-end/25933
        * loop-unroll.c (unroll_loop_runtime_iterations): Free
        dom_bbs pointer.
        * tree-ssa-live.c (type_var_init): Allocate bitmap after
        call to tpa_init.

From-SVN: r110449
parent 03e34d09
2006-01-31 Uttam Pawar <uttamp@us.ibm.com>
PR middle-end/25933
* loop-unroll.c (unroll_loop_runtime_iterations): Free
dom_bbs pointer.
* tree-ssa-live.c (type_var_init): Allocate bitmap after
call to tpa_init.
2006-01-31 Marcin Dalecki <martin@dalecki.de> 2006-01-31 Marcin Dalecki <martin@dalecki.de>
* tree-vrp.c: Use XNEW/XCNEW allocation wrappers. * tree-vrp.c: Use XNEW/XCNEW allocation wrappers.
......
...@@ -1167,6 +1167,9 @@ unroll_loop_runtime_iterations (struct loops *loops, struct loop *loop) ...@@ -1167,6 +1167,9 @@ unroll_loop_runtime_iterations (struct loops *loops, struct loop *loop)
";; Unrolled loop %d times, counting # of iterations " ";; Unrolled loop %d times, counting # of iterations "
"in runtime, %i insns\n", "in runtime, %i insns\n",
max_unroll, num_loop_insns (loop)); max_unroll, num_loop_insns (loop));
if (dom_bbs)
free (dom_bbs);
} }
/* Decide whether to simply peel LOOP and how much. */ /* Decide whether to simply peel LOOP and how much. */
......
...@@ -1078,13 +1078,13 @@ type_var_init (var_map map) ...@@ -1078,13 +1078,13 @@ type_var_init (var_map map)
tree t; tree t;
sbitmap seen; sbitmap seen;
seen = sbitmap_alloc (num_partitions);
sbitmap_zero (seen);
tv = tpa_init (map); tv = tpa_init (map);
if (!tv) if (!tv)
return NULL; return NULL;
seen = sbitmap_alloc (num_partitions);
sbitmap_zero (seen);
for (x = num_partitions - 1; x >= 0; x--) for (x = num_partitions - 1; x >= 0; x--)
{ {
t = partition_to_var (map, x); t = partition_to_var (map, x);
......
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