2001-07-15 Richard Henderson <rth@redhat.com>
+ * flow.c (redirect_edge_and_branch_force): Initialize
+ global_live_at_start and global_live_at_end.
+ (allocate_bb_life_data): Export.
+ * basic-block.h (allocate_bb_life_data): Declare.
+ * toplev.c (rest_of_compilation): Call it.
+
+2001-07-15 Richard Henderson <rth@redhat.com>
+
* config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
(alpha_tablejump_best_label): New.
* config/alpha/alpha-protos.h: Declare them.
extern void dump_regset PARAMS ((regset, FILE *));
extern void debug_regset PARAMS ((regset));
extern void allocate_reg_life_data PARAMS ((void));
+extern void allocate_bb_life_data PARAMS ((void));
extern void find_unreachable_blocks PARAMS ((void));
/* This function is always defined so it can be called from the
static void flow_loops_tree_build PARAMS ((struct loops *));
static int flow_loop_level_compute PARAMS ((struct loop *, int));
static int flow_loops_level_compute PARAMS ((struct loops *));
-static void allocate_bb_life_data PARAMS ((void));
static void find_sub_basic_blocks PARAMS ((basic_block));
static bool redirect_edge_and_branch PARAMS ((edge, basic_block));
static basic_block redirect_edge_and_branch_force PARAMS ((edge, basic_block));
new_edge->probability = e->probability;
new_edge->count = e->count;
+ if (e->dest->global_live_at_start)
+ {
+ new_bb->global_live_at_start = OBSTACK_ALLOC_REG_SET (&flow_obstack);
+ new_bb->global_live_at_end = OBSTACK_ALLOC_REG_SET (&flow_obstack);
+ COPY_REG_SET (new_bb->global_live_at_start,
+ e->dest->global_live_at_start);
+ COPY_REG_SET (new_bb->global_live_at_end, new_bb->global_live_at_start);
+ }
+
/* Wire edge in. */
new_edge->src = e->src;
new_edge->dest = new_bb;
/* Allocate the permanent data structures that represent the results
of life analysis. Not static since used also for stupid life analysis. */
-static void
+void
allocate_bb_life_data ()
{
register int i;
without updating life info can wind up with Wierd Stuff in
global_live_at_end. We then run sched1, which updates things
properly, discovers the wierdness and aborts. */
+ allocate_bb_life_data ();
update_life_info (NULL, UPDATE_LIFE_GLOBAL_RM_NOTES,
PROP_DEATH_NOTES | PROP_KILL_DEAD_CODE
| PROP_SCAN_DEAD_CODE);