]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.21] 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:28 +0000 (15:30 +0000)
commit8fbd4d7b0e166c61536681ce454b4b039c21594a
tree462c16f3f2936b58dac3a5e02320fa55ff43b8ba
parent77cfa2904491e5138294a10a4a3e07ac6269e1a7
[release-branch.go1.21] 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 #67164

(Reroll of CL 583303)

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