From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45116 invoked by alias); 24 Nov 2015 05:41:18 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 45098 invoked by uid 89); 24 Nov 2015 05:41:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,DATE_IN_PAST_06_12,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: paperclip.tbsaunde.org Received: from tbsaunde.org (HELO paperclip.tbsaunde.org) (66.228.47.254) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 24 Nov 2015 05:41:16 +0000 Received: from iceball.myhome.westell.com (pool-72-73-196-93.cmdnnj.east.verizon.net [72.73.196.93]) by paperclip.tbsaunde.org (Postfix) with ESMTPSA id 3A762C07C; Tue, 24 Nov 2015 05:41:15 +0000 (UTC) From: tbsaunde+gcc@tbsaunde.org To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de Subject: [PATCH 2/2] remove val_ssa_equiv_hash_traits Date: Tue, 24 Nov 2015 05:53:00 -0000 Message-Id: <1448318933-23235-2-git-send-email-tbsaunde+gcc@tbsaunde.org> In-Reply-To: <1448318933-23235-1-git-send-email-tbsaunde+gcc@tbsaunde.org> References: <1448318933-23235-1-git-send-email-tbsaunde+gcc@tbsaunde.org> X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg02822.txt.bz2 From: Trevor Saunders Hi, this is pretty trivial cleanup after the previous patch, but could wait for next stage 1 if people don't like the very small risk. boostrappped + regtested on x86_64-linux-gnu, ok? Trev gcc/ChangeLog: 2015-11-20 Trevor Saunders * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove. (val_ssa_equiv_hash_traits::remove): Likewise. (pass_uncprop::execute): Adjust. --- gcc/tree-ssa-uncprop.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/gcc/tree-ssa-uncprop.c b/gcc/tree-ssa-uncprop.c index 23b4ca2..a60184e 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. */ -- 2.4.0