From 6308dae99ae845156f9782713bee1edf84ab7af6 Mon Sep 17 00:00:00 2001 From: Alex Samuel Date: Sun, 9 Apr 2000 01:16:44 +0000 Subject: ssa.c (convert_to_ssa): Eliminate dead code when calling life_analysis. * ssa.c (convert_to_ssa): Eliminate dead code when calling life_analysis. (convert_from_ssa): Call compute_bb_for_insn before life_analysis. (for_each_successor_phi): Change parameter to basic_block. (coalesce_regs_in_successor_phi_nodes): Likewise. (coalesce_regs_in_copies): Likewise. (compute_coalesced_reg_partition): Use basic_block instead of index. * rtl.h (convert_to_ssa): Delete. (convert_from_ssa): Likewise. (successor_phi_fn): Likewise. (for_each_successor_phi): Likewise. (in_ssa_form): Likewise. * basic-block.h (convert_to_ssa): Moved from rtl.h. (convert_from_ssa): Likewise. (successor_phi_fn): Likewise. (in_ssa_form): Likewise. (for_each_successor_phi): Likewise. Change parameter to basic_block. * flow.c (calculate_global_regs_live): Pass a basic_block to for_each_successor_phi. From-SVN: r33032 --- gcc/basic-block.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/basic-block.h') diff --git a/gcc/basic-block.h b/gcc/basic-block.h index 1f98fa4..62a4b5b 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -491,4 +491,13 @@ extern conflict_graph conflict_graph_compute PARAMS ((regset, partition)); +/* In ssa.c */ +extern void convert_to_ssa PARAMS ((void)); +extern void convert_from_ssa PARAMS ((void)); +typedef int (*successor_phi_fn) PARAMS ((rtx, int, int, void *)); +extern int for_each_successor_phi PARAMS ((basic_block bb, + successor_phi_fn, + void *)); +extern int in_ssa_form; + #endif /* _BASIC_BLOCK_H */ -- cgit v1.1