]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: make arm64 use RegTo2 instead of a full fledged Addr To2
authorShenghou Ma <minux@golang.org>
Thu, 21 May 2015 21:51:34 +0000 (17:51 -0400)
committerMinux Ma <minux@golang.org>
Thu, 28 May 2015 01:09:38 +0000 (01:09 +0000)
commit0f27b915228ff661aeaf823fa90db023765cbe5d
tree4c3600a35dde32ddc1b069ce0a511b5a3e8c1c49
parent4e4c1f9c4d101d5578656c06a42784856fec9f0d
cmd/internal/obj: make arm64 use RegTo2 instead of a full fledged Addr To2

It shrinks Prog type from 448 bytes down to 376 bytes on amd64.

It also makes sense, because I don't know of any modern architecture
that have instructions which can write to two destinations, none of
which is a register (even x86 doesn't have such instructions).

Change-Id: I3061f1c9ac93d79ee2b92ecb9049641d0e0f6300
Reviewed-on: https://go-review.googlesource.com/10330
Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/asm/internal/asm/asm.go
src/cmd/compile/internal/arm64/peep.go
src/cmd/internal/obj/arm64/asm7.go
src/cmd/internal/obj/link.go
src/cmd/internal/obj/util.go
src/cmd/internal/obj/x86/obj6.go