Re: [PATCH 4/4 v2] c++: Consider only relevant template arguments in sat_hasher

2020-11-06 Thread Jason Merrill via Gcc-patches
On 11/5/20 8:40 PM, Patrick Palka wrote: A large source of cache misses in satisfy_atom is caused by the identity of an (atom,args) pair within the satisfaction cache being determined by the entire set of supplied template arguments rather than by the subset of template arguments that the atom ac

[PATCH 4/4 v2] c++: Consider only relevant template arguments in sat_hasher

2020-11-05 Thread Patrick Palka via Gcc-patches
A large source of cache misses in satisfy_atom is caused by the identity of an (atom,args) pair within the satisfaction cache being determined by the entire set of supplied template arguments rather than by the subset of template arguments that the atom actually depends on. For instance, consider