]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/loong64: simplify buildop
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Tue, 26 Aug 2025 08:25:21 +0000 (16:25 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Thu, 28 Aug 2025 02:53:35 +0000 (19:53 -0700)
commit6b837a64dbe6264035037d61c56ab94b55b2844d
tree770ebda48514966f69e602e3ad3b8a6bff7d1101
parent765905e3bd13dcb048388890dba2ea47f6e58711
cmd/internal/obj/loong64: simplify buildop

The length of array optab is readily available, remove the sentinel and
sentinel scan, like arm64.

Change-Id: Iceeed22587ce2beeedeb5babdde3474e75d70f89
Reviewed-on: https://go-review.googlesource.com/c/go/+/699095
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
src/cmd/internal/obj/loong64/asm.go