]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree-ssa-sccvn.h
Convert tree-ssa-sccvn to inchash
[thirdparty/gcc.git] / gcc / tree-ssa-sccvn.h
index f52783a68cf243ba90788eeb32f988c0358a2930..84ea278f8464d17786f94ab3d0a5dbb8eeeaa788 100644 (file)
@@ -140,8 +140,10 @@ vn_hash_type (tree type)
 static inline hashval_t
 vn_hash_constant_with_type (tree constant)
 {
-  return (iterative_hash_expr (constant, 0)
-         + vn_hash_type (TREE_TYPE (constant)));
+  inchash::hash hstate;
+  inchash::add_expr (constant, hstate);
+  hstate.merge_hash (vn_hash_type (TREE_TYPE (constant)));
+  return hstate.end ();
 }
 
 /* Compare the constants C1 and C2 with distinguishing type incompatible