]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.22] cmd/compile: don't combine loads in generated equality functions
authorkhr@golang.org <khr@golang.org>
Fri, 3 May 2024 19:55:34 +0000 (12:55 -0700)
committerCherry Mui <cherryyz@google.com>
Fri, 10 May 2024 15:30:46 +0000 (15:30 +0000)
commitdc8976dd0bfb7d50378ded23e1d7b2c569eb66a7
tree0eb66fe9ca02d3faaf889e7949721a5cc714f242
parent00e6815208cad8768e114f508d2153bed3bcf88f
[release-branch.go1.22] cmd/compile: don't combine loads in generated equality functions

... if the architecture can't do unaligned loads.
We already handle this in a few places, but this particular place
was added in CL 399542 and missed this additional restriction.

Fixes #67212

(Reroll of CL 583417)

Change-Id: I8ee74909341e0af0d51d3761e17ff92e744ecd38
Reviewed-on: https://go-review.googlesource.com/c/go/+/583798
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/compare/compare.go
test/fixedbugs/issue67160.go [new file with mode: 0644]