]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use equality signatures in hash function generation
authorKeith Randall <khr@golang.org>
Fri, 5 Dec 2025 01:27:02 +0000 (17:27 -0800)
committerKeith Randall <khr@golang.org>
Sat, 24 Jan 2026 04:58:13 +0000 (20:58 -0800)
commit0da8979210de8749306ddd8b49710d5594bb75c4
tree32dde1028d3240c3e04deadca2afc9e01450e7a7
parent6eec9bcdb28c9a143db1962fac6847a282dbaf65
cmd/compile: use equality signatures in hash function generation

There aren't a huge number of generated hash functions, so this probably
won't save a whole lot of memory. But it means we can clean up a bunch
of code by basing equality and hashing on the same underlying infrastructure.

Change-Id: I36ed1e49044fecb33120d8736f1c0403a4a2554e
Reviewed-on: https://go-review.googlesource.com/c/go/+/727500
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/reflectdata/alg.go
src/runtime/alg.go