]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: Unify & improve struct comparisons
authorDerek Parker <parkerderek86@gmail.com>
Thu, 21 Apr 2022 23:26:16 +0000 (23:26 +0000)
committerIan Lance Taylor <iant@google.com>
Thu, 21 Apr 2022 23:45:31 +0000 (23:45 +0000)
commit3c29aca43630da1604c3378d2351050f23655268
treeef30a023be5a7f14302a00602f5b75f75a807feb
parent555bed939d878db4c6fd60f2fef0577273dd05a7
cmd/compile: Unify & improve struct comparisons

Partially fixes https://github.com/golang/go/issues/38674

The first commit has the actual unification, the second commit just cleans things up by moving shared code into its own package for clarity.

Change-Id: I85067f8b247df02f94684ec1297a1a42263bba0c
GitHub-Last-Rev: 370a4ecad315f945b62195f8daddca693345a0c7
GitHub-Pull-Request: golang/go#52315
Reviewed-on: https://go-review.googlesource.com/c/go/+/399542
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/compile/internal/compare/compare.go [new file with mode: 0644]
src/cmd/compile/internal/reflectdata/alg.go
src/cmd/compile/internal/reflectdata/reflect.go
src/cmd/compile/internal/walk/compare.go