Re: GGC: Remove 'const char *' 'gt_ggc_mx', 'gt_pch_nx' variants (was: [PATCH] support ggc hash_map and hash_set)

2023-07-06 Thread Richard Biener via Gcc-patches
On Thu, Jul 6, 2023 at 8:53 PM Thomas Schwinge wrote: > > Hi! > > On 2014-09-01T21:56:28-0400, tsaund...@mozilla.com wrote: > > [...] this part [...] > > ... became commit b086d5308de0d25444243f482f2f3d1dfd3a9a62 > (Subversion r214834), which added GGC support to &#

GGC: Remove 'const char *' 'gt_ggc_mx', 'gt_pch_nx' variants (was: [PATCH] support ggc hash_map and hash_set)

2023-07-06 Thread Thomas Schwinge
Hi! On 2014-09-01T21:56:28-0400, tsaund...@mozilla.com wrote: > [...] this part [...] ... became commit b086d5308de0d25444243f482f2f3d1dfd3a9a62 (Subversion r214834), which added GGC support to 'hash_map', 'hash_set', and converted to those a number of 'htab&#x

[committed] d: Cache generated import declarations in a hash_map

2022-03-11 Thread Iain Buclaw via Gcc-patches
Hi, This patch refactors the ImportVisitor to cache the generated result decl in a hash_map. Originally, these were cached in the front-end AST node field `isym'. However, this field is soon to be removed. Bootstrapped and regression tested on x86_64-linux-gnu/m32/mx32, and committ

Re: [PATCH] Fix hash_map::traverse overload

2021-12-07 Thread Richard Biener via Gcc-patches
On Tue, Dec 7, 2021 at 12:10 PM Matthias Kretz wrote: > > On Tuesday, 7 December 2021 08:43:56 CET Richard Biener wrote: > > On Mon, Dec 6, 2021 at 11:47 AM Matthias Kretz wrote: > > > While reading the hash_map code I noticed this inconsistency. Bootstrapped > > &g

Re: [PATCH] Fix hash_map::traverse overload

2021-12-07 Thread Matthias Kretz
On Tuesday, 7 December 2021 08:43:56 CET Richard Biener wrote: > On Mon, Dec 6, 2021 at 11:47 AM Matthias Kretz wrote: > > While reading the hash_map code I noticed this inconsistency. Bootstrapped > > and regtested on x86_64. OK for trunk? > > I've inspected two users

Re: [PATCH] Fix hash_map::traverse overload

2021-12-07 Thread Richard Biener via Gcc-patches
s Kretz wrote: > > > > > > > > > > > > > > > While reading the hash_map code I noticed this inconsistency. > > > > Bootstrapped and regtested on x86_64. OK for trunk? > > > > > > > > > > > > I've insp

Re: [PATCH] Fix hash_map::traverse overload

2021-12-07 Thread Matthias Kretz
On Tuesday, 7 December 2021 08:47:56 CET Richard Biener wrote: > On Tue, Dec 7, 2021 at 8:43 AM Richard Biener > wrote: > > > > > > > On Mon, Dec 6, 2021 at 11:47 AM Matthias Kretz wrote: > > > > > > > > > > > While reading the hash_m

Re: [PATCH] Fix hash_map::traverse overload

2021-12-06 Thread Richard Biener via Gcc-patches
On Tue, Dec 7, 2021 at 8:43 AM Richard Biener wrote: > > On Mon, Dec 6, 2021 at 11:47 AM Matthias Kretz wrote: > > > > While reading the hash_map code I noticed this inconsistency. Bootstrapped > > and > > regtested on x86_64. OK for trunk? > > I've insp

Re: [PATCH] Fix hash_map::traverse overload

2021-12-06 Thread Richard Biener via Gcc-patches
On Mon, Dec 6, 2021 at 11:47 AM Matthias Kretz wrote: > > While reading the hash_map code I noticed this inconsistency. Bootstrapped and > regtested on x86_64. OK for trunk? I've inspected two users of said overload and they return true. Did you look at the rest? I assume that

[PATCH] Fix hash_map::traverse overload

2021-12-06 Thread Matthias Kretz
While reading the hash_map code I noticed this inconsistency. Bootstrapped and regtested on x86_64. OK for trunk? The hash_map::traverse overload taking a non-const Value pointer breaks if the callback returns false. The other overload should behave the same. Signed-off-by: Matthias Kretz

Re: [PATCH] ipa-param-manip: Be careful about a reallocating hash_map (PR 103449)

2021-11-29 Thread Jan Hubicka via Gcc-patches
> Hi, > > PR 103449 revealed that when I was storing result of one hash_map > lookup into another entry in the hash_map, I was still accessing the > entry in the table, which meanwhile could get reallocated, making the > accesses invalid-after-free. > > Fixed with t

[PATCH] ipa-param-manip: Be careful about a reallocating hash_map (PR 103449)

2021-11-29 Thread Martin Jambor
Hi, PR 103449 revealed that when I was storing result of one hash_map lookup into another entry in the hash_map, I was still accessing the entry in the table, which meanwhile could get reallocated, making the accesses invalid-after-free. Fixed with the following, which also simplifies the return

Fix 'hash_table::expand' to destruct stale Value objects (was: 'hash_map>')

2021-08-30 Thread Thomas Schwinge
M, Thomas Schwinge wrote: >>>> So I'm trying to do some C++... ;-) >>>> >>>> Given: >>>> >>>> /* A map from SSA names or var decls to record fields. */ >>>> typedef hash_map field_map_t; >>>> >&

Re: Expensive selftests (was: 'hash_map>')

2021-08-18 Thread David Edelsohn via Gcc-patches
On 8/16/21 6:44 AM, Thomas Schwinge wrote: > > >> [...], to document the current behavior, I propose to > > >> "Add more self-tests for 'hash_map' with Value type with non-trivial > > >> constructor/destructor", see attached. OK to push to m

Add more self-tests for 'hash_map' with Value type with non-trivial constructor/destructor (was: Expensive selftests)

2021-08-18 Thread Thomas Schwinge
ior, I propose to >> >> "Add more self-tests for 'hash_map' with Value type with non-trivial >> >> constructor/destructor", see attached. OK to push to master branch? >> >> (Also cherry-pick into release branches, eventually?) >> >

Re: Expensive selftests (was: 'hash_map>')

2021-08-17 Thread Richard Biener via Gcc-patches
On Tue, Aug 17, 2021 at 8:40 AM Thomas Schwinge wrote: > > Hi! > > On 2021-08-16T14:10:00-0600, Martin Sebor wrote: > > On 8/16/21 6:44 AM, Thomas Schwinge wrote: > >> [...], to document the current behavior, I propose to > >> "Add more self-tests for &#

Expensive selftests (was: 'hash_map>')

2021-08-16 Thread Thomas Schwinge
Hi! On 2021-08-16T14:10:00-0600, Martin Sebor wrote: > On 8/16/21 6:44 AM, Thomas Schwinge wrote: >> [...], to document the current behavior, I propose to >> "Add more self-tests for 'hash_map' with Value type with non-trivial >> constructor/destructor&q

Re: 'hash_map>'

2021-08-16 Thread Martin Sebor via Gcc-patches
On 8/16/21 6:44 AM, Thomas Schwinge wrote: Hi! On 2021-08-12T17:15:44-0600, Martin Sebor via Gcc wrote: On 8/6/21 10:57 AM, Thomas Schwinge wrote: So I'm trying to do some C++... ;-) Given: /* A map from SSA names or var decls to record fields. */ typedef hash_map field_

Re: 'hash_map>'

2021-08-16 Thread Thomas Schwinge
Hi! On 2021-08-12T17:15:44-0600, Martin Sebor via Gcc wrote: > On 8/6/21 10:57 AM, Thomas Schwinge wrote: >> So I'm trying to do some C++... ;-) >> >> Given: >> >> /* A map from SSA names or var decls to record fields. */ >> typedef

Re: [PATCH] c++: Fix another PCH hash_map issue [PR96901]

2020-09-03 Thread Jason Merrill via Gcc-patches
On 9/3/20 4:20 AM, Jakub Jelinek wrote: Hi! The recent libstdc++ changes caused lots of libstdc++-v3 tests FAILs on i686-linux, all of them in the same spot during constexpr evaluation of a recursive _S_gcd call. The problem is yet another hash_map that used the default hasing of tree keys

[PATCH] c++: Fix another PCH hash_map issue [PR96901]

2020-09-03 Thread Jakub Jelinek via Gcc-patches
Hi! The recent libstdc++ changes caused lots of libstdc++-v3 tests FAILs on i686-linux, all of them in the same spot during constexpr evaluation of a recursive _S_gcd call. The problem is yet another hash_map that used the default hasing of tree keys through pointer hashing which is preserved

Re: [PATCH] reassoc: Avoid code generation to depend on hash_map traversal [PR94166]

2020-03-16 Thread Richard Biener
On Sat, 14 Mar 2020, Jakub Jelinek wrote: > Hi! > > On the following testcase, if there is ASLR, the compiler generates > different code each time (out of 1000 invocations 994 unique assembler > contents). The problem is that undistribute_bitref_for_vector uses > a ha

[PATCH] reassoc: Avoid code generation to depend on hash_map traversal [PR94166]

2020-03-14 Thread Jakub Jelinek via Gcc-patches
Hi! On the following testcase, if there is ASLR, the compiler generates different code each time (out of 1000 invocations 994 unique assembler contents). The problem is that undistribute_bitref_for_vector uses a hash_map from a tree (SSA_NAME) to a vector and such a hash_map is by default doing

Re: [PATCH 1/2] IPA ICF: rewrite references into a hash_map.

2019-06-03 Thread Jan Hubicka
_step_for_index (congruence_class > *cls, > 3136unsigned int index) > 3137 { > 3138hash_map split_map; > 3139 > 3140for (unsigned int i = 0; i < cls->members.length (); i++) > 3141 { > 314

Re: [PATCH 1/2] IPA ICF: rewrite references into a hash_map.

2019-06-03 Thread Martin Liška
if a class CLS used as INDEXth splits any congruence classes. 3132 Bitmap stack BMSTACK is used for bitmap allocation. */ 3133 3134 void 3135 sem_item_optimizer::do_congruence_step_for_index (congruence_class *cls, 3136uns

Re: [PATCH 1/2] IPA ICF: rewrite references into a hash_map.

2019-06-03 Thread Jan Hubicka
m_item_optimizer::build_graph): Pass m_references > to ::add_reference. > (sem_item_optimizer::verify_classes): Remove usage of dead > vectors. > (sem_item_optimizer::traverse_congruence_split): Return true > when a class is split. > (sem_item_optimiz

[PATCH 1/2] IPA ICF: rewrite references into a hash_map.

2019-06-03 Thread Martin Liška
to ::add_reference. (sem_item_optimizer::verify_classes): Remove usage of dead vectors. (sem_item_optimizer::traverse_congruence_split): Return true when a class is split. (sem_item_optimizer::do_congruence_step_for_index): Use hash_map for look up of (sem_i

Re: RFA (hash-map): PATCH to support GTY((cache)) with hash_map

2017-11-25 Thread Markus Trippelsdorf
On 2017.11.14 at 13:32 +0100, Richard Biener wrote: > On Fri, Sep 15, 2017 at 11:45 PM, Jason Merrill wrote: > > The hash_map interface is a lot more convenient than that of > > hash_table for cases where it makes sense, but there hasn't been a way > > to get the ggc_ca

Re: RFA (hash-map): PATCH to support GTY((cache)) with hash_map

2017-11-14 Thread Richard Biener
On Fri, Sep 15, 2017 at 11:45 PM, Jason Merrill wrote: > The hash_map interface is a lot more convenient than that of > hash_table for cases where it makes sense, but there hasn't been a way > to get the ggc_cache_remove behavior with a hash_map. In other words, > not marking el

PING Re: RFA (hash-map): PATCH to support GTY((cache)) with hash_map

2017-11-13 Thread Jason Merrill
Ping. On Fri, Sep 15, 2017 at 5:45 PM, Jason Merrill wrote: > The hash_map interface is a lot more convenient than that of > hash_table for cases where it makes sense, but there hasn't been a way > to get the ggc_cache_remove behavior with a hash_map. In other words, > not

RFA (hash-map): PATCH to support GTY((cache)) with hash_map

2017-09-15 Thread Jason Merrill
The hash_map interface is a lot more convenient than that of hash_table for cases where it makes sense, but there hasn't been a way to get the ggc_cache_remove behavior with a hash_map. In other words, not marking elements during the initial ggc marking phase, but maybe marking them durin

PATCH to add hash_map::empty

2015-11-13 Thread Jason Merrill
The C++ delayed folding work wants to be able to clear out a hash_map, and it's trivial to refer to the empty() function from the hash_table. Tested x86_64-pc-linux-gnu, applying to trunk. commit 760ba6617d6b7867692aba8c7494e8f08d6109aa Author: Jason Merrill Date: Fri Nov 13 09:38:32

Re: [12/12] Simplify uses of hash_map

2015-06-26 Thread Richard Sandiford
Richard Sandiford writes: > Richard Sandiford writes: >> Rainer Orth writes: >>> Richard Sandiford writes: >>> >>>> Rainer Orth writes: >>>>> Jeff Law writes: >>>>> >>>>>> On 06/23/2015 08:57 AM, Richard S

Re: [12/12] Simplify uses of hash_map

2015-06-26 Thread Richard Sandiford
Richard Sandiford writes: > Rainer Orth writes: >> Richard Sandiford writes: >> >>> Rainer Orth writes: >>>> Jeff Law writes: >>>> >>>>> On 06/23/2015 08:57 AM, Richard Sandiford wrote: >>>>>> At this point all

Re: [12/12] Simplify uses of hash_map

2015-06-26 Thread Richard Sandiford
Rainer Orth writes: > Richard Sandiford writes: > >> Rainer Orth writes: >>> Jeff Law writes: >>> >>>> On 06/23/2015 08:57 AM, Richard Sandiford wrote: >>>>> At this point all hash_map traits know what kind of key they're >>&g

Re: [12/12] Simplify uses of hash_map

2015-06-26 Thread Mikhail Maltsev
On 06/26/2015 04:37 PM, Rainer Orth wrote: > /vol/gcc/src/hg/trunk/local/gcc/hash-map.h:173:8: note: template bool (* f)(tree_node*&, tree_node* const&, Arg)> void hash_map::traverse(Arg) > const [with Arg = Arg; bool (* f)(typename Traits::key_type&, const Value&, >

Re: [12/12] Simplify uses of hash_map

2015-06-26 Thread Rainer Orth
Richard Sandiford writes: > Rainer Orth writes: >> Jeff Law writes: >> >>> On 06/23/2015 08:57 AM, Richard Sandiford wrote: >>>> At this point all hash_map traits know what kind of key they're >>>> dealing with, so we can make that a traits

Re: [12/12] Simplify uses of hash_map

2015-06-26 Thread Richard Sandiford
Rainer Orth writes: > Jeff Law writes: > >> On 06/23/2015 08:57 AM, Richard Sandiford wrote: >>> At this point all hash_map traits know what kind of key they're >>> dealing with, so we can make that a traits typedef, like it is for >>> hash_table trait

Re: [12/12] Simplify uses of hash_map

2015-06-26 Thread Rainer Orth
Jeff Law writes: > On 06/23/2015 08:57 AM, Richard Sandiford wrote: >> At this point all hash_map traits know what kind of key they're >> dealing with, so we can make that a traits typedef, like it is for >> hash_table traits. Then, if we make the default hash traits

Re: [12/12] Simplify uses of hash_map

2015-06-25 Thread Jeff Law
On 06/23/2015 08:57 AM, Richard Sandiford wrote: At this point all hash_map traits know what kind of key they're dealing with, so we can make that a traits typedef, like it is for hash_table traits. Then, if we make the default hash traits for T be T, we can use hash_table-style traits a

Re: [01/12] Add hash_map traits that use existing hash_table-like traits

2015-06-25 Thread Jeff Law
On 06/23/2015 08:42 AM, Richard Sandiford wrote: This patch defines a class that converts hash_table-style traits into hash_map traits. It can be used as the default traits for all hash_maps that don't specify their own traits (i.e. this patch does work on its own). By the end of the s

[12/12] Simplify uses of hash_map

2015-06-23 Thread Richard Sandiford
At this point all hash_map traits know what kind of key they're dealing with, so we can make that a traits typedef, like it is for hash_table traits. Then, if we make the default hash traits for T be T, we can use hash_table-style traits as the first template parameter to hash_map, withou

[01/12] Add hash_map traits that use existing hash_table-like traits

2015-06-23 Thread Richard Sandiford
This patch defines a class that converts hash_table-style traits into hash_map traits. It can be used as the default traits for all hash_maps that don't specify their own traits (i.e. this patch does work on its own). By the end of the series this class replaces default_hashmap_traits.

[00/12] Share hash traits between hash_table and hash_map

2015-06-23 Thread Richard Sandiford
Following on from: https://gcc.gnu.org/ml/gcc-patches/2015-06/msg01066.html this series unifies the key hashing traits for hash_maps in all but one case (which needs to use the values rather than keys to represent deleted and empty entries). It also consolidates the various tree, integer and strin

Re: [PATCH] support ggc hash_map and hash_set

2014-10-17 Thread Alan Lawrence
l compiler error: in relocate_ptrs, at ggc-common.c:435 --Alan tsaund...@mozilla.com wrote: From: Trevor Saunders Hi, There are still some issues to make this work really nicely, but this part is probably good enough its worth reviewing. For one thing you can't use ggc hash_map or set in fro

Re: [PATCH] support ggc hash_map and hash_set

2014-10-15 Thread Richard Biener
issues to make this work really nicely, but this part >> > is >> > probably good enough its worth reviewing. >> > >> > For one thing you can't use ggc hash_map or set in front ends with some >> > types >> > or gengtype will decide to p

Re: [PATCH] support ggc hash_map and hash_set

2014-10-14 Thread Trevor Saunders
d enough its worth reviewing. > > > > For one thing you can't use ggc hash_map or set in front ends with some > > types > > or gengtype will decide to put the overloads of the marking routines it > > provides in a front end file instead of the one it choose b

Re: [PATCH] support ggc hash_map and hash_set

2014-10-14 Thread Richard Biener
On Tue, Sep 2, 2014 at 3:56 AM, wrote: > From: Trevor Saunders > > Hi, > > There are still some issues to make this work really nicely, but this part is > probably good enough its worth reviewing. > > For one thing you can't use ggc hash_map or set in front ends

Re: [PATCH] support ggc hash_map and hash_set

2014-09-09 Thread Trevor Saunders
/gcc.gnu.org/bugs.html> for instructions. > > FAIL: ./array-1.H -g (internal compiler error) > FAIL: ./array-1.H -g (test for excess errors) > Excess errors: > ./array-1.H:4:2: internal compiler error: in relocate_ptrs, at > ggc-common.c:435 > > --Alan > > t

Re: [PATCH] support ggc hash_map and hash_set

2014-09-09 Thread Alan Lawrence
rror: in relocate_ptrs, at ggc-common.c:435 --Alan tsaund...@mozilla.com wrote: From: Trevor Saunders Hi, There are still some issues to make this work really nicely, but this part is probably good enough its worth reviewing. For one thing you can't use ggc hash_map or set in front ends

Re: [PATCH] support ggc hash_map and hash_set

2014-09-02 Thread Trevor Saunders
d enough its worth reviewing. > > > > For one thing you can't use ggc hash_map or set in front ends with some > > types > > or gengtype will decide to put the overloads of the marking routines it > > provides in a front end file instead of the one it choose b

Re: [PATCH] support ggc hash_map and hash_set

2014-09-02 Thread Richard Biener
On Tue, Sep 2, 2014 at 3:56 AM, wrote: > From: Trevor Saunders > > Hi, > > There are still some issues to make this work really nicely, but this part is > probably good enough its worth reviewing. > > For one thing you can't use ggc hash_map or set in front ends

[PATCH] support ggc hash_map and hash_set

2014-09-01 Thread tsaunders
From: Trevor Saunders Hi, There are still some issues to make this work really nicely, but this part is probably good enough its worth reviewing. For one thing you can't use ggc hash_map or set in front ends with some types or gengtype will decide to put the overloads of the marking rou

Re: [PATCH 1/2] convert the rest of the users of pointer_map to hash_map

2014-08-06 Thread Richard Biener
lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h, > tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c, > tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead > of pointer_map. > > gcc/cp/ > > *

[PATCH 1/2] convert the rest of the users of pointer_map to hash_map

2014-08-05 Thread tsaunders
-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead of pointer_map. gcc/cp/ * cp-tree.h, pt.c: Use hash_map instead of pointer_map. gcc/lto/ * lto-partition.c, lto.c: Use hash_map instead of pointer_map. --- gcc/alias.c | 5 +-- gcc/cfgexpand.c

Re: [PATCH] convert many pointer_map to hash_map

2014-08-02 Thread Oleg Endo
g 1, 2014 at 12:34 PM, wrote: >>>>> From: Trevor Saunders >>>>> >>>>> Hi, >>>>> >>>>> This patch replaces a bunch of usage of pointer_map with hash_map. It >>>>> also >>>>> adds an overload to hash_m

Re: [PATCH] convert many pointer_map to hash_map

2014-08-02 Thread Trevor Saunders
r Saunders > > > > > > > > Hi, > > > > > > > > This patch replaces a bunch of usage of pointer_map with hash_map. It > > > > also > > > > adds an overload to hash_map::traverse that allows modifying the value, > > > > and

Re: [PATCH] convert many pointer_map to hash_map

2014-08-02 Thread Oleg Endo
On Sat, 2014-08-02 at 07:34 -0400, Trevor Saunders wrote: > On Fri, Aug 01, 2014 at 12:52:08PM +0200, Richard Biener wrote: > > On Fri, Aug 1, 2014 at 12:34 PM, wrote: > > > From: Trevor Saunders > > > > > > Hi, > > > > > > This patch repla

Re: [PATCH] convert many pointer_map to hash_map

2014-08-02 Thread Trevor Saunders
On Fri, Aug 01, 2014 at 12:52:08PM +0200, Richard Biener wrote: > On Fri, Aug 1, 2014 at 12:34 PM, wrote: > > From: Trevor Saunders > > > > Hi, > > > > This patch replaces a bunch of usage of pointer_map with hash_map. It also > > adds an overload to h

Re: [PATCH] convert many pointer_map to hash_map

2014-08-01 Thread Richard Biener
On Fri, Aug 1, 2014 at 12:34 PM, wrote: > From: Trevor Saunders > > Hi, > > This patch replaces a bunch of usage of pointer_map with hash_map. It also > adds an overload to hash_map::traverse that allows modifying the value, and a > remove method. > > bootstrapped +

[PATCH] convert many pointer_map to hash_map

2014-08-01 Thread tsaunders
From: Trevor Saunders Hi, This patch replaces a bunch of usage of pointer_map with hash_map. It also adds an overload to hash_map::traverse that allows modifying the value, and a remove method. bootstrapped + regtested on x86_64-unknown-linux-gnu, ok? Trev c-family/ * cilk.c: Use

Re: [PATCH] convert some hash_table to hash_map

2014-07-08 Thread Richard Biener
On Tue, Jul 8, 2014 at 5:01 AM, wrote: > From: Trevor Saunders > > Hi, > > just $subject > bootstrapped + regtested on x86_64-unknown-linux-gnu, ok? Ok. Thanks, Richard. > Trev > > gcc/ > > * graphite-htab.h: Use hash_map instead of hash_table. >

[PATCH] convert some hash_table to hash_map

2014-07-07 Thread tsaunders
From: Trevor Saunders Hi, just $subject bootstrapped + regtested on x86_64-unknown-linux-gnu, ok? Trev gcc/ * graphite-htab.h: Use hash_map instead of hash_table. * graphite-clast-to-gimple.c: Adjust. * passes.c: Use hash_map instead of hash_table. * sese.c

Re: [PATCH 3/3] add hash_map class

2014-06-25 Thread Martin Liška
On 06/24/2014 09:31 PM, Richard Biener wrote: On June 24, 2014 9:16:34 PM CEST, Trevor Saunders wrote: On Tue, Jun 24, 2014 at 08:23:49PM +0200, Jan Hubicka wrote: On 06/20/2014 12:52 PM, tsaund...@mozilla.com wrote: From: Trevor Saunders Hi, This patch adds a hash_map class so we can

Re: [PATCH 3/3] add hash_map class

2014-06-24 Thread Richard Biener
On June 24, 2014 9:16:34 PM CEST, Trevor Saunders wrote: >On Tue, Jun 24, 2014 at 08:23:49PM +0200, Jan Hubicka wrote: >> > >> > On 06/20/2014 12:52 PM, tsaund...@mozilla.com wrote: >> > >From: Trevor Saunders >> > > >> > >Hi, >> &

Re: [PATCH 3/3] add hash_map class

2014-06-24 Thread Trevor Saunders
On Tue, Jun 24, 2014 at 08:23:49PM +0200, Jan Hubicka wrote: > > > > On 06/20/2014 12:52 PM, tsaund...@mozilla.com wrote: > > >From: Trevor Saunders > > > > > >Hi, > > > > > >This patch adds a hash_map class so we can consolidate the boi

Re: [PATCH 3/3] add hash_map class

2014-06-24 Thread Jan Hubicka
> > On 06/20/2014 12:52 PM, tsaund...@mozilla.com wrote: > >From: Trevor Saunders > > > >Hi, > > > >This patch adds a hash_map class so we can consolidate the boiler plate > >around > >using hash_table as a map, it also allows us to get rid o

Re: [PATCH 3/3] add hash_map class

2014-06-24 Thread Trevor Saunders
s > >>> > >>>Hi, > >>> > >>>This patch adds a hash_map class so we can consolidate the boiler plate > >>>around > >>>using hash_table as a map, it also allows us to get rid of pointer_map > >>>which I > >&g

Re: [PATCH 3/3] add hash_map class

2014-06-24 Thread Martin Liška
On 06/24/2014 02:40 PM, Trevor Saunders wrote: On Tue, Jun 24, 2014 at 02:29:53PM +0200, Martin Liška wrote: On 06/20/2014 12:52 PM, tsaund...@mozilla.com wrote: From: Trevor Saunders Hi, This patch adds a hash_map class so we can consolidate the boiler plate around using hash_table as a

Re: [PATCH 3/3] add hash_map class

2014-06-24 Thread Trevor Saunders
On Tue, Jun 24, 2014 at 02:29:53PM +0200, Martin Liška wrote: > > On 06/20/2014 12:52 PM, tsaund...@mozilla.com wrote: > >From: Trevor Saunders > > > >Hi, > > > >This patch adds a hash_map class so we can consolidate the boiler plate > >around > >

Re: [PATCH 3/3] add hash_map class

2014-06-24 Thread Martin Liška
On 06/20/2014 12:52 PM, tsaund...@mozilla.com wrote: From: Trevor Saunders Hi, This patch adds a hash_map class so we can consolidate the boiler plate around using hash_table as a map, it also allows us to get rid of pointer_map which I do in this patch by converting its users to hash_map

Re: [PATCH 3/3] add hash_map class

2014-06-23 Thread Richard Biener
On Fri, Jun 20, 2014 at 12:52 PM, wrote: > From: Trevor Saunders > > Hi, > > This patch adds a hash_map class so we can consolidate the boiler plate around > using hash_table as a map, it also allows us to get rid of pointer_map which I > do in this patch by converting

[PATCH 3/3] add hash_map class

2014-06-20 Thread tsaunders
From: Trevor Saunders Hi, This patch adds a hash_map class so we can consolidate the boiler plate around using hash_table as a map, it also allows us to get rid of pointer_map which I do in this patch by converting its users to hash_map. bootstrapped + regtested without regression on x86_64