Commit 2e653e39 by Richard Kenner Committed by Richard Kenner

gcse.c (expr_hash_table_size): Now unsigned.

	* gcse.c (expr_hash_table_size): Now unsigned.
	(compute_ae_gen): Local variable `i' now unsigned.
	(compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
	(compute_transout, hoist_code): Likewise.
	(compute_local_properties): Likewise, also hash_table_size.
	(alloc_expr_hash_table): N_INSNS now unsigned.
	(delete_null_pointer_checks): Mark arg F as unused.

From-SVN: r33054
parent 1a43c33f
Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* gcse.c (expr_hash_table_size): Now unsigned.
(compute_ae_gen): Local variable `i' now unsigned.
(compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
(compute_transout, hoist_code): Likewise.
(compute_local_properties): Likewise, also hash_table_size.
(alloc_expr_hash_table): N_INSNS now unsigned.
(delete_null_pointer_checks): Mark arg F as unused.
* regrename.c: Minor cleanups, including chang some variables * regrename.c: Minor cleanups, including chang some variables
to unsigned int. to unsigned int.
......
...@@ -365,7 +365,8 @@ struct occr ...@@ -365,7 +365,8 @@ struct occr
Someday I'll perform the computation and figure it out. */ Someday I'll perform the computation and figure it out. */
/* Total size of the expression hash table, in elements. */ /* Total size of the expression hash table, in elements. */
static int expr_hash_table_size; static unsigned int expr_hash_table_size;
/* The table itself. /* The table itself.
This is an array of `expr_hash_table_size' elements. */ This is an array of `expr_hash_table_size' elements. */
static struct expr **expr_hash_table; static struct expr **expr_hash_table;
...@@ -560,7 +561,7 @@ static void compute_hash_table PARAMS ((int)); ...@@ -560,7 +561,7 @@ static void compute_hash_table PARAMS ((int));
static void alloc_set_hash_table PARAMS ((int)); static void alloc_set_hash_table PARAMS ((int));
static void free_set_hash_table PARAMS ((void)); static void free_set_hash_table PARAMS ((void));
static void compute_set_hash_table PARAMS ((void)); static void compute_set_hash_table PARAMS ((void));
static void alloc_expr_hash_table PARAMS ((int)); static void alloc_expr_hash_table PARAMS ((unsigned int));
static void free_expr_hash_table PARAMS ((void)); static void free_expr_hash_table PARAMS ((void));
static void compute_expr_hash_table PARAMS ((void)); static void compute_expr_hash_table PARAMS ((void));
static void dump_hash_table PARAMS ((FILE *, const char *, struct expr **, static void dump_hash_table PARAMS ((FILE *, const char *, struct expr **,
...@@ -1011,7 +1012,7 @@ compute_local_properties (transp, comp, antloc, setp) ...@@ -1011,7 +1012,7 @@ compute_local_properties (transp, comp, antloc, setp)
sbitmap *antloc; sbitmap *antloc;
int setp; int setp;
{ {
int i, hash_table_size; unsigned int i, hash_table_size;
struct expr **hash_table; struct expr **hash_table;
/* Initialize any bitmaps that were passed in. */ /* Initialize any bitmaps that were passed in. */
...@@ -2245,7 +2246,7 @@ compute_set_hash_table () ...@@ -2245,7 +2246,7 @@ compute_set_hash_table ()
static void static void
alloc_expr_hash_table (n_insns) alloc_expr_hash_table (n_insns)
int n_insns; unsigned int n_insns;
{ {
int n; int n;
...@@ -2691,7 +2692,7 @@ free_avail_expr_mem () ...@@ -2691,7 +2692,7 @@ free_avail_expr_mem ()
static void static void
compute_ae_gen () compute_ae_gen ()
{ {
int i; unsigned int i;
struct expr *expr; struct expr *expr;
struct occr *occr; struct occr *occr;
...@@ -2773,7 +2774,8 @@ static void ...@@ -2773,7 +2774,8 @@ static void
compute_ae_kill (ae_gen, ae_kill) compute_ae_kill (ae_gen, ae_kill)
sbitmap *ae_gen, *ae_kill; sbitmap *ae_gen, *ae_kill;
{ {
int bb, i; int bb;
unsigned int i;
struct expr *expr; struct expr *expr;
for (bb = 0; bb < n_basic_blocks; bb++) for (bb = 0; bb < n_basic_blocks; bb++)
...@@ -4522,7 +4524,7 @@ pre_insert_copy_insn (expr, insn) ...@@ -4522,7 +4524,7 @@ pre_insert_copy_insn (expr, insn)
static void static void
pre_insert_copies () pre_insert_copies ()
{ {
int i; unsigned int i;
struct expr *expr; struct expr *expr;
struct occr *occr; struct occr *occr;
struct occr *avail; struct occr *avail;
...@@ -4584,7 +4586,8 @@ pre_insert_copies () ...@@ -4584,7 +4586,8 @@ pre_insert_copies ()
static int static int
pre_delete () pre_delete ()
{ {
int i, bb, changed; unsigned int i;
int bb, changed;
struct expr *expr; struct expr *expr;
struct occr *occr; struct occr *occr;
...@@ -4675,8 +4678,8 @@ pre_delete () ...@@ -4675,8 +4678,8 @@ pre_delete ()
static int static int
pre_gcse () pre_gcse ()
{ {
int i, did_insert; unsigned int i;
int changed; int did_insert, changed;
struct expr **index_map; struct expr **index_map;
struct expr *expr; struct expr *expr;
...@@ -4818,7 +4821,7 @@ static void ...@@ -4818,7 +4821,7 @@ static void
compute_transpout () compute_transpout ()
{ {
int bb; int bb;
int i; unsigned int i;
struct expr *expr; struct expr *expr;
sbitmap_vector_ones (transpout, n_basic_blocks); sbitmap_vector_ones (transpout, n_basic_blocks);
...@@ -5051,7 +5054,7 @@ delete_null_pointer_checks_1 (block_reg, nonnull_avin, nonnull_avout, npi) ...@@ -5051,7 +5054,7 @@ delete_null_pointer_checks_1 (block_reg, nonnull_avin, nonnull_avout, npi)
void void
delete_null_pointer_checks (f) delete_null_pointer_checks (f)
rtx f; rtx f ATTRIBUTE_UNUSED;
{ {
sbitmap *nonnull_avin, *nonnull_avout; sbitmap *nonnull_avin, *nonnull_avout;
unsigned int *block_reg; unsigned int *block_reg;
...@@ -5311,7 +5314,8 @@ hoist_expr_reaches_here_p (expr_bb, expr_index, bb, visited) ...@@ -5311,7 +5314,8 @@ hoist_expr_reaches_here_p (expr_bb, expr_index, bb, visited)
static void static void
hoist_code () hoist_code ()
{ {
int bb, dominated, i; int bb, dominated;
unsigned int i;
struct expr **index_map; struct expr **index_map;
struct expr *expr; struct expr *expr;
......
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