* gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
(compute_pre_data): Do it here instead.
From-SVN: r35224
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.
{
free (transp);
free (comp);
- free (antloc);
+
+ /* ANTLOC and AE_KILL are freed just after pre_lcm finishes. */
if (pre_optimal)
free (pre_optimal);
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;
}
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 */