2015-10-27 Caroline Tice <cmtice@google.com>
(from Richard Biener)
* tree.c (int_cst_hash_hash): Replace XORs with more efficient
calls to iterative_hash_host_wide_int.
From-SVN: r229450
+2015-10-27 Caroline Tice <cmtice@google.com>
+
+ (from Richard Biener)
+ * tree.c (int_cst_hash_hash): Replace XORs with more efficient
+ calls to iterative_hash_host_wide_int.
+
2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Backport from mainline
{
const_tree const t = (const_tree) x;
- return (TREE_INT_CST_HIGH (t) ^ TREE_INT_CST_LOW (t)
- ^ TYPE_UID (TREE_TYPE (t)));
+ hashval_t hash = TYPE_UID (TREE_TYPE (t));
+ hash = iterative_hash_host_wide_int (TREE_INT_CST_HIGH (t), hash);
+ hash = iterative_hash_host_wide_int (TREE_INT_CST_LOW (t), hash);
+ return hash;
}
/* Return nonzero if the value represented by *X (an INTEGER_CST tree node)