Commit ceda50e9 by Richard Henderson Committed by Richard Henderson

gcse.c (lookup_set): Remove unused argument PAT.

        * gcse.c (lookup_set): Remove unused argument PAT.  Update
        both callers.

From-SVN: r62759
parent cc687dae
2003-02-11 Richard Henderson <rth@redhat.com>
* gcse.c (lookup_set): Remove unused argument PAT. Update
both callers.
2003-02-11 Geoffrey Keating <geoffk@apple.com> 2003-02-11 Geoffrey Keating <geoffk@apple.com>
* diagnostic.c (real_abort): New. * diagnostic.c (real_abort): New.
......
...@@ -593,7 +593,7 @@ static void compute_hash_table_work PARAMS ((struct hash_table *)); ...@@ -593,7 +593,7 @@ static void compute_hash_table_work PARAMS ((struct hash_table *));
static void dump_hash_table PARAMS ((FILE *, const char *, static void dump_hash_table PARAMS ((FILE *, const char *,
struct hash_table *)); struct hash_table *));
static struct expr *lookup_expr PARAMS ((rtx, struct hash_table *)); static struct expr *lookup_expr PARAMS ((rtx, struct hash_table *));
static struct expr *lookup_set PARAMS ((unsigned int, rtx, struct hash_table *)); static struct expr *lookup_set PARAMS ((unsigned int, struct hash_table *));
static struct expr *next_set PARAMS ((unsigned int, struct expr *)); static struct expr *next_set PARAMS ((unsigned int, struct expr *));
static void reset_opr_set_tables PARAMS ((void)); static void reset_opr_set_tables PARAMS ((void));
static int oprs_not_set_p PARAMS ((rtx, rtx)); static int oprs_not_set_p PARAMS ((rtx, rtx));
...@@ -2641,14 +2641,12 @@ lookup_expr (pat, table) ...@@ -2641,14 +2641,12 @@ lookup_expr (pat, table)
return expr; return expr;
} }
/* Lookup REGNO in the set TABLE. If PAT is non-NULL look for the entry that /* Lookup REGNO in the set TABLE. The result is a pointer to the
matches it, otherwise return the first entry for REGNO. The result is a table entry, or NULL if not found. */
pointer to the table entry, or NULL if not found. */
static struct expr * static struct expr *
lookup_set (regno, pat, table) lookup_set (regno, table)
unsigned int regno; unsigned int regno;
rtx pat;
struct hash_table *table; struct hash_table *table;
{ {
unsigned int hash = hash_set (regno, table->size); unsigned int hash = hash_set (regno, table->size);
...@@ -2656,16 +2654,8 @@ lookup_set (regno, pat, table) ...@@ -2656,16 +2654,8 @@ lookup_set (regno, pat, table)
expr = table->table[hash]; expr = table->table[hash];
if (pat) while (expr && REGNO (SET_DEST (expr->expr)) != regno)
{ expr = expr->next_same_hash;
while (expr && ! expr_equiv_p (expr->expr, pat))
expr = expr->next_same_hash;
}
else
{
while (expr && REGNO (SET_DEST (expr->expr)) != regno)
expr = expr->next_same_hash;
}
return expr; return expr;
} }
...@@ -3997,7 +3987,7 @@ find_avail_set (regno, insn) ...@@ -3997,7 +3987,7 @@ find_avail_set (regno, insn)
while (1) while (1)
{ {
rtx src; rtx src;
struct expr *set = lookup_set (regno, NULL_RTX, &set_hash_table); struct expr *set = lookup_set (regno, &set_hash_table);
/* Find a set that is available at the start of the block /* Find a set that is available at the start of the block
which contains INSN. */ which contains INSN. */
...@@ -4727,7 +4717,7 @@ find_bypass_set (regno, bb) ...@@ -4727,7 +4717,7 @@ find_bypass_set (regno, bb)
for (;;) for (;;)
{ {
rtx src; rtx src;
struct expr *set = lookup_set (regno, NULL_RTX, &set_hash_table); struct expr *set = lookup_set (regno, &set_hash_table);
while (set) while (set)
{ {
......
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