]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: improve classification of loads and stores
authorJoel Sing <joel@sing.id.au>
Mon, 1 May 2023 17:42:30 +0000 (03:42 +1000)
committerJoel Sing <joel@sing.id.au>
Mon, 31 Jul 2023 16:37:49 +0000 (16:37 +0000)
commit3313b39bae9ee6b830fecaaaaa004de646f82e50
tree32f739e3ca92f012c93e22efe091e16404db4914
parenta37da52d75e7268943e4a9879736fd0c04998ddf
cmd/internal/obj/arm64: improve classification of loads and stores

Currently, pool literals are added when they are not needed, namely
in the case where the offset is a 24 bit unsigned scaled immediate.
By improving the classification of loads and stores, we can avoid
generating unused pool literals. However, more importantly this
provides a basis for further improvement of the load and store
code generation.

Updates #59615

Change-Id: Ia3bad1709314565a05894a76c434cca2fa4533c4
Reviewed-on: https://go-review.googlesource.com/c/go/+/512538
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/internal/obj/arm64/a.out.go
src/cmd/internal/obj/arm64/anames7.go
src/cmd/internal/obj/arm64/asm7.go