tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor of tree_operand_hash.
authorRichard Biener <rguenther@suse.de>
Mon, 7 Jan 2019 14:34:06 +0000 (14:34 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 7 Jan 2019 14:34:06 +0000 (14:34 +0000)
2019-01-07  Richard Biener  <rguenther@suse.de>

* tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
of tree_operand_hash.

From-SVN: r267649

gcc/ChangeLog
gcc/tree-ssa-uncprop.c

index e5f3ad231c9acfdd7d5712d420675dd212a3baea..472145b6cb7d92d79727d54e0a03241d561e5597 100644 (file)
@@ -1,3 +1,8 @@
+2019-01-07  Richard Biener  <rguenther@suse.de>
+
+       * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
+       of tree_operand_hash.
+
 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
 
        PR tree-optimization/88598
index b9b05ed1a2c2152e99b210535aac094e5abf1b14..d61a685bb1cbc8333a6d3a1aa593ab885fe25d12 100644 (file)
@@ -268,19 +268,7 @@ associate_equivalences_with_edges (void)
    so with each value we have a list of SSA_NAMEs that have the
    same value.  */
 
-/* Traits for the hash_map to record the value to SSA name equivalences
-   mapping.  */
-struct ssa_equip_hash_traits : default_hash_traits <tree>
-{
-  static inline hashval_t hash (value_type value)
-    { return iterative_hash_expr (value, 0); }
-  static inline bool equal (value_type existing, value_type candidate)
-    { return operand_equal_p (existing, candidate, 0); }
-};
-
-typedef hash_map<tree, auto_vec<tree>,
-                simple_hashmap_traits <ssa_equip_hash_traits,
-                                       auto_vec <tree> > > val_ssa_equiv_t;
+typedef hash_map<tree_operand_hash, auto_vec<tree> > val_ssa_equiv_t;
 
 /* Global hash table implementing a mapping from invariant values
    to a list of SSA_NAMEs which have the same value.  We might be