]> Cypherpunks.ru 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)
committerKeith Randall <khr@google.com>
Mon, 6 May 2024 18:11:05 +0000 (18:11 +0000)
commit9d2e28501c7dea1c0ddde00ac683105d0bfe9f63
tree3c970d8f2ba1c0315e57a5634eada6508bbc27dc
parent93d8777d244962d1b706c0b695c8b72e9702577e
[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

Change-Id: I45988f11ff3ed45df1c4da3f0931ab1fdb22dbfe
Reviewed-on: https://go-review.googlesource.com/c/go/+/583175
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Auto-Submit: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Derek Parker <parkerderek86@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
(cherry picked from commit 3c72dd513c30df60c0624360e98a77c4ae7ca7c8)
Reviewed-on: https://go-review.googlesource.com/c/go/+/583417
src/cmd/compile/internal/compare/compare.go
test/fixedbugs/issue67160.go [new file with mode: 0644]