]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/loong64: use the MOVVP instruction to optimize prologue
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Thu, 11 Sep 2025 08:30:38 +0000 (16:30 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Tue, 16 Sep 2025 02:13:50 +0000 (19:13 -0700)
commiteb7c67fdc9e17959647a15db9e7781b9d447061a
tree0874b3de730a67acb5371543b1f6b352dbffbef3
parent6b8d507508c75c7f60ab61429e346e3b28db4040
cmd/internal/obj/loong64: use the MOVVP instruction to optimize prologue

The MOVVP instruction has a larger offset range, and removes 928
instructions from the go binary on loong64.

file        before      after       Δ
go          1634208     1634064    -144
gofmt       323324      323240     -84
asm         567870      567778     -92
cgo         487694      487598     -96
compile     2500266     2500142    -124
cover       530590      530498     -92
link        723804      723692     -112
preprofile  240562      240474     -88
vet         819672      819576     -96

Change-Id: Ib0efcb006d3ae3f2bceec0d6e88f3794d5e99831
Reviewed-on: https://go-review.googlesource.com/c/go/+/702715
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: Mark Freeman <markfreeman@google.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/internal/obj/loong64/obj.go