]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: simplify memory load and store operations on loong64
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Wed, 3 Sep 2025 01:41:08 +0000 (09:41 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 3 Sep 2025 22:10:19 +0000 (15:10 -0700)
commitc552ad913fd7117a70cc3abee6b44a15aac060e2
treef023156ca81eb3163efbc9959de69d81da9c78ee
parente8f9127d1f47ea9cf252237d387ea61d17651c3e
cmd/compile: simplify memory load and store operations on loong64

If the memory load and store operations use the same ptr, they are
combined into a direct move operation between registers, like riscv64.

Change-Id: I889e51a5146aee7f15340114bc4abd12eb6b8a1f
Reviewed-on: https://go-review.googlesource.com/c/go/+/700535
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/_gen/LOONG64.rules
src/cmd/compile/internal/ssa/rewriteLOONG64.go