Re: [PATCH] Relax hash function to match equals function behavior (PR testsuite/86158).

2018-10-26 Thread Richard Biener
On Fri, Oct 26, 2018 at 9:20 AM Martin Liška wrote: > > Hi. > > The patch aligns ipa_vr_ggc_hash_traits::hash function what actual > ipa_vr_ggc_hash_traits::equals > operator does. Currently, the hash function is pointer based, which the real > equal operator > does internally operand_equal_p, w

[PATCH] Relax hash function to match equals function behavior (PR testsuite/86158).

2018-10-26 Thread Martin Liška
Hi. The patch aligns ipa_vr_ggc_hash_traits::hash function what actual ipa_vr_ggc_hash_traits::equals operator does. Currently, the hash function is pointer based, which the real equal operator does internally operand_equal_p, which works fine for equal constants (with different addresses). It