OSDN Git Service

2006-01-31 Uttam Pawar <uttamp@us.ibm.com>
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jan 2006 21:39:32 +0000 (21:39 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jan 2006 21:39:32 +0000 (21:39 +0000)
        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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110449 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/loop-unroll.c
gcc/tree-ssa-live.c

index 92a4df0..ba74dcb 100644 (file)
@@ -1,3 +1,11 @@
+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>
 
        * tree-vrp.c: Use XNEW/XCNEW allocation wrappers.
index d25caf9..48f9deb 100644 (file)
@@ -1167,6 +1167,9 @@ unroll_loop_runtime_iterations (struct loops *loops, struct loop *loop)
             ";; Unrolled loop %d times, counting # of iterations "
             "in runtime, %i insns\n",
             max_unroll, num_loop_insns (loop));
+
+  if (dom_bbs)
+    free (dom_bbs);
 }
 
 /* Decide whether to simply peel LOOP and how much.  */
index e011a5d..5b9ead1 100644 (file)
@@ -1078,13 +1078,13 @@ type_var_init (var_map map)
   tree t;
   sbitmap seen;
 
-  seen = sbitmap_alloc (num_partitions);
-  sbitmap_zero (seen);
-
   tv = tpa_init (map);
   if (!tv)
     return NULL;
 
+  seen = sbitmap_alloc (num_partitions);
+  sbitmap_zero (seen);
+
   for (x = num_partitions - 1; x >= 0; x--)
     {
       t = partition_to_var (map, x);