]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: convert branch with zero to more optimal branch zero on loong64
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Wed, 6 Aug 2025 07:50:24 +0000 (15:50 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Mon, 11 Aug 2025 14:37:59 +0000 (07:37 -0700)
commita7f05b38f7e7beefd5ee54089aae59b21507bb3c
tree7ed955c4c8cd284d3733aa800b31b854061c590f
parent1718828c81f2bad44b51b13fb4b34540a9c2c096
cmd/compile: convert branch with zero to more optimal branch zero on loong64

This reduces 7500+ instructions from the go toolchain binary on loong64.

file         before      after      Δ       %
asm          555066      554406   -660    -0.1189%
cgo          481480      480764   -716    -0.1487%
compile      2475836     2474776  -1060   -0.0428%
cover        516536      515788   -748    -0.1448%
link         702220      701216   -1004   -0.1430%
preprofile   238626      238122   -504    -0.2112%
vet          792798      791894   -904    -0.1140%
go           1573108     1571676  -1432   -0.0910%
gofmt        320578      320042   -536    -0.1672%
total        7656248     7648684  -7564   -0.0988%

Change-Id: I51b70a1543bc258b7664caa8647e75eecbaf5eed
Reviewed-on: https://go-review.googlesource.com/c/go/+/693495
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/ssa/_gen/LOONG64.rules
src/cmd/compile/internal/ssa/rewriteLOONG64.go