]> Cypherpunks repositories - gostls13.git/commit
cmd/compile, cmd/link: enable Duff's device on darwin/arm64
authorCherry Mui <cherryyz@google.com>
Tue, 2 Aug 2022 21:39:11 +0000 (17:39 -0400)
committerCherry Mui <cherryyz@google.com>
Mon, 8 Aug 2022 17:54:10 +0000 (17:54 +0000)
commit4bcc138bc6a4791163c9f2604a9fa44ed4ec8421
tree085dde089c6f1e88c004b31dd3145a3b34bae530
parentd02d5fda653f9e7ca2bb6036ccddc61a869abad5
cmd/compile, cmd/link: enable Duff's device on darwin/arm64

Duff's device was disabled on darwin/arm64 because the darwin
linker couldn't handle a branch relocation with non-zero addend.
This is no longer the case now. The darwin linker can handle it
just fine. So enable it.

Fixes #54189.

Change-Id: Ida7ebafe6eb01db1af5bb8ae60a62491da5eabdf
Reviewed-on: https://go-review.googlesource.com/c/go/+/420894
Reviewed-by: Eric Fang <eric.fang@arm.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/arm64/ggen.go
src/cmd/compile/internal/ssa/config.go
src/cmd/link/internal/arm64/asm.go