]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: optimize rule (x + x) << c to x << c+1 on loong64
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Thu, 21 Aug 2025 08:52:02 +0000 (16:52 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 21 Aug 2025 18:16:49 +0000 (11:16 -0700)
commitfa706ea50fd0b9bf36d642d3bb8eeb732caafc7f
tree90116ccf17cc900044a65d837b6c236c28608bc8
parentffc85ee1f1c865c953920f966a8401d963b102ca
cmd/compile: optimize rule (x + x) << c to x << c+1 on loong64

Change-Id: I782f93510bba92ba60b298c1c1cde456c8bcec38
Reviewed-on: https://go-review.googlesource.com/c/go/+/697956
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
src/cmd/compile/internal/ssa/_gen/LOONG64.rules
src/cmd/compile/internal/ssa/rewriteLOONG64.go
test/codegen/shift.go