aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2023-08-02 20:29:52 +1000
committerJoel Sing <joel@sing.id.au>2023-08-28 17:40:40 +0000
commit19e2e3c291e28d337f155f5f01afa21910431752 (patch)
tree9ad70c49a65908aee1687d000fbf397d4056bb60 /src/encoding
parentb2e809bab59a692aa6a69e1bd1d32eeeab4622e3 (diff)
downloadgo-19e2e3c291e28d337f155f5f01afa21910431752.tar.xz
cmd/internal/obj/arm64: avoid unnecessary pool literal usage for load/store pairs
Implement better classification for load and store pair operations. This in turn allows us to avoid using pool literals when the offset fits in a 24 bit unsigned immediate. In this case, the offset can be calculated using two add immediate instructions, rather than loading the offset from the pool literal and then adding the offset to the base register. This requires the same number of instructions, however avoids a load from memory and does not require the offset to be stored in the literal pool. Updates #59615 Change-Id: I316ec3d54f1d06ae9d930e98d0c32471775fcb26 Reviewed-on: https://go-review.googlesource.com/c/go/+/515615 Run-TryBot: Joel Sing <joel@sing.id.au> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Joedian Reid <joedian@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions