]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: for arm64 epilog, do SP increment with a single instruction
authorKeith Randall <khr@golang.org>
Mon, 21 Jul 2025 17:09:35 +0000 (10:09 -0700)
committerKeith Randall <khr@google.com>
Mon, 21 Jul 2025 18:08:57 +0000 (11:08 -0700)
commitf7cc61e7d7f77521e073137c6045ba73f66ef902
tree4cefcdbc824dc0cbcbf2a463d2cb1af46957fc76
parent5dac42363ba8281a3f4f08e03af2292b763adc38
cmd/compile: for arm64 epilog, do SP increment with a single instruction

That way, the frame is atomically popped. Previously, for big frames
the SP was unwound in two steps (because arm64 can only add constants
up to 1<<12 in a single instruction).

Fixes #73259

Change-Id: I382c249194ad7bc9fc19607c27487c58d90d49e5
Reviewed-on: https://go-review.googlesource.com/c/go/+/689235
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/internal/obj/arm64/obj7.go