Commit 55133eae by Jeff Law Committed by Jeff Law

[PATCH] Minor DOM cleanup

        PR tree-optimization/47679
	* tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
	type rather than void *.

From-SVN: r227762
parent 65440c48
2015-09-14 Jeff Law <law@redhat.com>
PR tree-optimization/47679
* tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
type rather than void *.
2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org> 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR fortran/67460 PR fortran/67460
......
...@@ -231,7 +231,7 @@ static struct opt_stats_d opt_stats; ...@@ -231,7 +231,7 @@ static struct opt_stats_d opt_stats;
/* Local functions. */ /* Local functions. */
static void optimize_stmt (basic_block, gimple_stmt_iterator); static void optimize_stmt (basic_block, gimple_stmt_iterator);
static tree lookup_avail_expr (gimple, bool); static tree lookup_avail_expr (gimple, bool);
static hashval_t avail_expr_hash (const void *); static hashval_t avail_expr_hash (struct expr_hash_elt *);
static void htab_statistics (FILE *, static void htab_statistics (FILE *,
const hash_table<expr_elt_hasher> &); const hash_table<expr_elt_hasher> &);
static void record_cond (cond_equivalence *); static void record_cond (cond_equivalence *);
...@@ -2661,9 +2661,9 @@ lookup_avail_expr (gimple stmt, bool insert) ...@@ -2661,9 +2661,9 @@ lookup_avail_expr (gimple stmt, bool insert)
its operands. */ its operands. */
static hashval_t static hashval_t
avail_expr_hash (const void *p) avail_expr_hash (struct expr_hash_elt *p)
{ {
const struct hashable_expr *expr = &((const struct expr_hash_elt *)p)->expr; const struct hashable_expr *expr = &p->expr;
inchash::hash hstate; inchash::hash hstate;
inchash::add_hashable_expr (expr, hstate); inchash::add_hashable_expr (expr, hstate);
......
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