Commit b71a2ff8 by Jeffrey A Law Committed by Jeff Law

gcse.c (delete_null_pointer_checks_1): Kill unused s_preds argument.

        * gcse.c (delete_null_pointer_checks_1): Kill unused s_preds
        argument.  All callers changed.
        (delete_null_pointer_checks_1): No longer need to compute the
        pred/succ lists.

From-SVN: r30529
parent 89e606c9
Sun Nov 14 23:11:05 1999 Jeffrey A Law (law@cygnus.com) Sun Nov 14 23:11:05 1999 Jeffrey A Law (law@cygnus.com)
* gcse.c (delete_null_pointer_checks_1): Kill unused s_preds
argument. All callers changed.
(delete_null_pointer_checks_1): No longer need to compute the
pred/succ lists.
* gcse.c (pre_expr_reaches_here_p): Kill CHECK_PRE_COM argument. * gcse.c (pre_expr_reaches_here_p): Kill CHECK_PRE_COM argument.
All callers changed. All callers changed.
(pre_expr_reaches_here_p_work): Likewise. (pre_expr_reaches_here_p_work): Likewise.
......
...@@ -633,8 +633,7 @@ static int handle_avail_expr PROTO ((rtx, struct expr *)); ...@@ -633,8 +633,7 @@ static int handle_avail_expr PROTO ((rtx, struct expr *));
static int classic_gcse PROTO ((void)); static int classic_gcse PROTO ((void));
static int one_classic_gcse_pass PROTO ((int)); static int one_classic_gcse_pass PROTO ((int));
static void invalidate_nonnull_info PROTO ((rtx, rtx, void *)); static void invalidate_nonnull_info PROTO ((rtx, rtx, void *));
static void delete_null_pointer_checks_1 PROTO ((int_list_ptr *, int *, static void delete_null_pointer_checks_1 PROTO ((int *, sbitmap *, sbitmap *,
sbitmap *, sbitmap *,
struct null_pointer_info *)); struct null_pointer_info *));
static rtx process_insert_insn PROTO ((struct expr *)); static rtx process_insert_insn PROTO ((struct expr *));
static int pre_edge_insert PROTO ((struct edge_list *, struct expr **)); static int pre_edge_insert PROTO ((struct edge_list *, struct expr **));
...@@ -4977,9 +4976,7 @@ invalidate_nonnull_info (x, setter, data) ...@@ -4977,9 +4976,7 @@ invalidate_nonnull_info (x, setter, data)
they are not our responsibility to free. */ they are not our responsibility to free. */
static void static void
delete_null_pointer_checks_1 (s_preds, block_reg, nonnull_avin, delete_null_pointer_checks_1 (block_reg, nonnull_avin, nonnull_avout, npi)
nonnull_avout, npi)
int_list_ptr *s_preds;
int *block_reg; int *block_reg;
sbitmap *nonnull_avin; sbitmap *nonnull_avin;
sbitmap *nonnull_avout; sbitmap *nonnull_avout;
...@@ -5143,8 +5140,6 @@ void ...@@ -5143,8 +5140,6 @@ void
delete_null_pointer_checks (f) delete_null_pointer_checks (f)
rtx f; rtx f;
{ {
int_list_ptr *s_preds, *s_succs;
int *num_preds, *num_succs;
sbitmap *nonnull_avin, *nonnull_avout; sbitmap *nonnull_avin, *nonnull_avout;
int *block_reg; int *block_reg;
int bb; int bb;
...@@ -5179,14 +5174,6 @@ delete_null_pointer_checks (f) ...@@ -5179,14 +5174,6 @@ delete_null_pointer_checks (f)
return; return;
} }
/* We need predecessor/successor lists as well as pred/succ counts for
each basic block. */
s_preds = (int_list_ptr *) gmalloc (n_basic_blocks * sizeof (int_list_ptr));
s_succs = (int_list_ptr *) gmalloc (n_basic_blocks * sizeof (int_list_ptr));
num_preds = (int *) gmalloc (n_basic_blocks * sizeof (int));
num_succs = (int *) gmalloc (n_basic_blocks * sizeof (int));
compute_preds_succs (s_preds, s_succs, num_preds, num_succs);
/* We need four bitmaps, each with a bit for each register in each /* We need four bitmaps, each with a bit for each register in each
basic block. */ basic block. */
max_reg = max_reg_num (); max_reg = max_reg_num ();
...@@ -5238,19 +5225,13 @@ delete_null_pointer_checks (f) ...@@ -5238,19 +5225,13 @@ delete_null_pointer_checks (f)
{ {
npi.min_reg = reg; npi.min_reg = reg;
npi.max_reg = MIN (reg + regs_per_pass, max_reg); npi.max_reg = MIN (reg + regs_per_pass, max_reg);
delete_null_pointer_checks_1 (s_preds, block_reg, nonnull_avin, delete_null_pointer_checks_1 (block_reg, nonnull_avin,
nonnull_avout, &npi); nonnull_avout, &npi);
} }
/* Free storage allocated by find_basic_blocks. */ /* Free storage allocated by find_basic_blocks. */
free_basic_block_vars (0); free_basic_block_vars (0);
/* Free our local predecessor/successor lists. */
free (s_preds);
free (s_succs);
free (num_preds);
free (num_succs);
/* Free the table of registers compared at the end of every block. */ /* Free the table of registers compared at the end of every block. */
free (block_reg); free (block_reg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment