diff options
author | Jeffrey A Law <law@cygnus.com> | 1999-11-15 06:18:36 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-11-14 23:18:36 -0700 |
commit | b71a2ff8fc8d43ee51b3f7a5d646c6f812954359 (patch) | |
tree | 1b2790c92978200ca5800a6f1b510122dd24e81a /gcc/gcse.c | |
parent | 89e606c9661b3f674bebc198ece46e9ef1a41c65 (diff) | |
download | gcc-b71a2ff8fc8d43ee51b3f7a5d646c6f812954359.zip gcc-b71a2ff8fc8d43ee51b3f7a5d646c6f812954359.tar.gz gcc-b71a2ff8fc8d43ee51b3f7a5d646c6f812954359.tar.bz2 |
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
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 25 |
1 files changed, 3 insertions, 22 deletions
@@ -633,8 +633,7 @@ static int handle_avail_expr PROTO ((rtx, struct expr *)); static int classic_gcse PROTO ((void)); static int one_classic_gcse_pass PROTO ((int)); static void invalidate_nonnull_info PROTO ((rtx, rtx, void *)); -static void delete_null_pointer_checks_1 PROTO ((int_list_ptr *, int *, - sbitmap *, sbitmap *, +static void delete_null_pointer_checks_1 PROTO ((int *, sbitmap *, sbitmap *, struct null_pointer_info *)); static rtx process_insert_insn PROTO ((struct expr *)); static int pre_edge_insert PROTO ((struct edge_list *, struct expr **)); @@ -4977,9 +4976,7 @@ invalidate_nonnull_info (x, setter, data) they are not our responsibility to free. */ static void -delete_null_pointer_checks_1 (s_preds, block_reg, nonnull_avin, - nonnull_avout, npi) - int_list_ptr *s_preds; +delete_null_pointer_checks_1 (block_reg, nonnull_avin, nonnull_avout, npi) int *block_reg; sbitmap *nonnull_avin; sbitmap *nonnull_avout; @@ -5143,8 +5140,6 @@ void delete_null_pointer_checks (f) rtx f; { - int_list_ptr *s_preds, *s_succs; - int *num_preds, *num_succs; sbitmap *nonnull_avin, *nonnull_avout; int *block_reg; int bb; @@ -5179,14 +5174,6 @@ delete_null_pointer_checks (f) 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 basic block. */ max_reg = max_reg_num (); @@ -5238,19 +5225,13 @@ delete_null_pointer_checks (f) { npi.min_reg = 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); } /* Free storage allocated by find_basic_blocks. */ 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 (block_reg); |