]> Cypherpunks repositories - gostls13.git/commit
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)
committerGopher Robot <gobot@golang.org>
Mon, 6 May 2024 15:34:04 +0000 (15:34 +0000)
commit3c72dd513c30df60c0624360e98a77c4ae7ca7c8
treee42be225fbb8db88993c787fc234c50f7bcb4833
parentcc1659916d49fdfe93aa8879b7f0d0cfb50f017a
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 #67160

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>
src/cmd/compile/internal/compare/compare.go
test/fixedbugs/issue67160.go [new file with mode: 0644]