]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: use BEQ/BNE to optimize the combination of XOR and EQ/NE...
authorlimeidan <limeidan@loongson.cn>
Mon, 28 Jul 2025 06:46:45 +0000 (14:46 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Wed, 13 Aug 2025 01:02:02 +0000 (18:02 -0700)
commitb266318cf714ab34be01e32d7338053ca6dcb294
tree4cd833634eab39265237a3f0dc564d5f31841df8
parentadbf59525c06ae7e037ad0e9a7709ebed2528d66
cmd/compile/internal/ssa: use BEQ/BNE to optimize the combination of XOR and EQ/NE on loong64

Reduce the number of go toolchain instructions on loong64 as follows:

file     before after      Δ  %
go     1599056 1590560     -8496    -0.5313%
gofmt     326188 326104     -84      -0.0258%
asm     563482 561250     -2232    -0.3961%
cgo     488644 485252     -3392    -0.6942%
compile     2504614 2486388     -18226   -0.7277%
cover     526322 523270     -3052    -0.5799%
link     714532 711124     -3408    -0.4770%
preprofile  242316 241112     -1204    -0.4969%
vet     794446 786118     -8328    -1.0483%

Change-Id: I0914889119a28ea672b694529ef54513fbb3f3b5
Reviewed-on: https://go-review.googlesource.com/c/go/+/693875
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/ssa/_gen/LOONG64latelower.rules
src/cmd/compile/internal/ssa/rewriteLOONG64latelower.go