From: tbsaunde Date: Tue, 24 Nov 2015 11:46:18 +0000 (+0000) Subject: remove val_ssa_equiv_hash_traits X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a2ac32bcf123ca68088d92068a443a7bf7c102a;p=thirdparty%2Fgcc.git remove val_ssa_equiv_hash_traits gcc/ChangeLog: 2015-11-24 Trevor Saunders * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove. (val_ssa_equiv_hash_traits::remove): Likewise. (pass_uncprop::execute): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230802 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 452f724765fb..cea194b0b830 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-11-24 Trevor Saunders + + * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove. + (val_ssa_equiv_hash_traits::remove): Likewise. + (pass_uncprop::execute): Adjust. + 2015-11-24 Trevor Saunders * hash-map-traits.h (simple_hashmap_traits ::remove): call diff --git a/gcc/tree-ssa-uncprop.c b/gcc/tree-ssa-uncprop.c index 23b4ca2a008f..a60184e31fe1 100644 --- a/gcc/tree-ssa-uncprop.c +++ b/gcc/tree-ssa-uncprop.c @@ -275,27 +275,10 @@ struct equiv_hash_elt vec equivalences; }; -/* Value to ssa name equivalence hashtable helpers. */ - -struct val_ssa_equiv_hash_traits : simple_hashmap_traits > -{ - template static inline void remove (T &); -}; - -/* Free an instance of equiv_hash_elt. */ - -template -inline void -val_ssa_equiv_hash_traits::remove (T &elt) -{ - elt.m_value.release (); -} - /* Global hash table implementing a mapping from invariant values to a list of SSA_NAMEs which have the same value. We might be able to reuse tree-vn for this code. */ -static hash_map, val_ssa_equiv_hash_traits> *val_ssa_equiv; +static hash_map > *val_ssa_equiv; static void uncprop_into_successor_phis (basic_block); @@ -518,8 +501,7 @@ pass_uncprop::execute (function *fun) associate_equivalences_with_edges (); /* Create our global data structures. */ - val_ssa_equiv - = new hash_map, val_ssa_equiv_hash_traits> (1024); + val_ssa_equiv = new hash_map > (1024); /* We're going to do a dominator walk, so ensure that we have dominance information. */