}
}
-/* Return the existing expression id for EXPR, or create one if one
- does not exist yet. */
-
-static inline unsigned int
-get_or_alloc_expression_id (pre_expr expr)
-{
- unsigned int id = lookup_expression_id (expr);
- if (id == 0)
- return alloc_expression_id (expr);
- return expr->id = id;
-}
-
/* Return the expression that has expression id ID */
static inline pre_expr
set = BITMAP_ALLOC (&grand_bitmap_obstack);
value_expressions[v] = set;
}
- bitmap_set_bit (set, get_or_alloc_expression_id (e));
+ bitmap_set_bit (set, get_expression_id (e));
}
}
for the same value to appear in a set. This is needed for
TMP_GEN, PHI_GEN and NEW_SETs. */
bitmap_set_bit (&set->values, val);
- bitmap_set_bit (&set->expressions, get_or_alloc_expression_id (expr));
+ bitmap_set_bit (&set->expressions, get_expression_id (expr));
}
}
{
unsigned int val = get_expr_value_id (expr);
- gcc_checking_assert (expr->id == get_or_alloc_expression_id (expr));
+ gcc_checking_assert (expr->id == get_expression_id (expr));
/* Constant values are always considered to be part of the set. */
if (value_id_constant_p (val))