]> gcc.gnu.org Git - gcc.git/commitdiff
gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
authorJeffrey A Law <law@cygnus.com>
Mon, 24 Jul 2000 15:21:16 +0000 (15:21 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 24 Jul 2000 15:21:16 +0000 (09:21 -0600)
        * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
        (compute_pre_data): Do it here instead.

From-SVN: r35224

gcc/ChangeLog
gcc/gcse.c

index 388b18a949c9d44c25ef3523a2e15810645fb211..32e7e5d334b249e3c12e98b25f799a09fb44c096 100644 (file)
@@ -1,5 +1,8 @@
 Mon Jul 24 02:04:52 2000  Jeffrey A Law  (law@cygnus.com)
 
+       * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
+       (compute_pre_data): Do it here instead.
+
        * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
        'temp_bitmap'.
        (pre_delete): Corresponding changes.
index ce4c07b8d408b002b3caa48a0e44a6eb500cc154..618a4345c3da5904940e84c4590de231e688736b 100644 (file)
@@ -4071,7 +4071,8 @@ free_pre_mem ()
 {
   free (transp);
   free (comp);
-  free (antloc);
+
+  /* ANTLOC and AE_KILL are freed just after pre_lcm finishes.  */
 
   if (pre_optimal)
     free (pre_optimal);
@@ -4088,14 +4089,12 @@ free_pre_mem ()
     free (ae_in);
   if (ae_out)
     free (ae_out);
-  if (ae_kill)
-    free (ae_kill);
   if (u_bitmap)
     free (u_bitmap);
 
-  transp = comp = antloc = NULL;
+  transp = comp = NULL;
   pre_optimal = pre_redundant = pre_insert_map = pre_delete_map = NULL;
-  transpout = ae_in = ae_out = ae_kill = NULL;
+  transpout = ae_in = ae_out = NULL;
   u_bitmap = NULL;
 
 }
@@ -4125,6 +4124,10 @@ compute_pre_data ()
 
   edge_list = pre_edge_lcm (gcse_file, n_exprs, transp, comp, antloc,
                            ae_kill, &pre_insert_map, &pre_delete_map);
+  free (antloc);
+  antloc = NULL;
+  free (ae_kill);
+  ae_kill = NULL; 
 }
 \f
 /* PRE utilities */
This page took 0.078346 seconds and 5 git commands to generate.