On Tue, Apr 18, 2023 at 01:33:47PM +0200, Aldy Hernandez wrote: > > > + const irange &r = as_a <irange> (v); > > > + if (r.varying_p ()) > > > + hstate.add_int (VR_VARYING); > > > + else > > > + hstate.add_int (VR_RANGE); > > > > Shouldn't this also > > hstate.add_int (r.num_pairs ()); > > ? > > Or is that unnecessary because different number of add_wide_int > > calls will likely result in different hashes then? > > That was my thinking, and we could save one write. > > I can add the num_pairs() if you prefer. I don't have a strong opinion.
Me neither. Let's go with your version then. Jakub