Commit 59b2c134 by Jakub Jelinek Committed by Jakub Jelinek

ipa-prop.c (ipa_vr_ggc_hash_traits::hash): Hash p->min and p->max as pointers…

ipa-prop.c (ipa_vr_ggc_hash_traits::hash): Hash p->min and p->max as pointers rather than using iterative_hash_expr.

	* ipa-prop.c (ipa_vr_ggc_hash_traits::hash): Hash p->min and
	p->max as pointers rather than using iterative_hash_expr.

From-SVN: r257940
parent 97bb4812
2018-02-23 Jakub Jelinek <jakub@redhat.com>
* ipa-prop.c (ipa_vr_ggc_hash_traits::hash): Hash p->min and
p->max as pointers rather than using iterative_hash_expr.
2018-02-23 Carl Love <cel@us.ibm.com> 2018-02-23 Carl Love <cel@us.ibm.com>
* config/rs6000/rs6000-builtin.def: Change VSIGNED2 and VUNSIGNED2 * config/rs6000/rs6000-builtin.def: Change VSIGNED2 and VUNSIGNED2
......
...@@ -113,9 +113,10 @@ struct ipa_vr_ggc_hash_traits : public ggc_cache_remove <value_range *> ...@@ -113,9 +113,10 @@ struct ipa_vr_ggc_hash_traits : public ggc_cache_remove <value_range *>
hash (const value_range *p) hash (const value_range *p)
{ {
gcc_checking_assert (!p->equiv); gcc_checking_assert (!p->equiv);
hashval_t t = (hashval_t) p->type; inchash::hash hstate (p->type);
t = iterative_hash_expr (p->min, t); hstate.add_ptr (p->min);
return iterative_hash_expr (p->max, t); hstate.add_ptr (p->max);
return hstate.end ();
} }
static bool static bool
equal (const value_range *a, const value_range *b) equal (const value_range *a, const value_range *b)
......
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