From: law Date: Mon, 15 Nov 1999 06:18:36 +0000 (+0000) Subject: * gcse.c (delete_null_pointer_checks_1): Kill unused s_preds X-Git-Tag: upstream/4.9.2~104566 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=505a22cd7cd3a74bf9ebd293b266f76d94362179;p=platform%2Fupstream%2Flinaro-gcc.git * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30529 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 575d01d..4222fd6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. All callers changed. (pre_expr_reaches_here_p_work): Likewise. diff --git a/gcc/gcse.c b/gcc/gcse.c index 1715f9c..73f8373 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -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);