]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: simplify bounded shift on riscv64
authorWayne Zuo <wdvxdr@golangcn.org>
Wed, 10 Aug 2022 16:07:40 +0000 (00:07 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 31 Aug 2022 20:21:00 +0000 (20:21 +0000)
commitda6556968f3545aa6c4e5a3c3aef151bb9b1d439
tree8357dbb33a57534532d4848abf1a140547bd47d3
parent971373f56a5e47e523c7ac7f097349b83f5d31b5
cmd/compile: simplify bounded shift on riscv64

The prove pass will mark some shifts bounded, and then we can use that
information to generate better code on riscv64.

Change-Id: Ia22f43d0598453c9417adac7017db28d7240948b
Reviewed-on: https://go-review.googlesource.com/c/go/+/422616
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Joel Sing <joel@sing.id.au>
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/RISCV64.rules
src/cmd/compile/internal/ssa/rewriteRISCV64.go
test/codegen/shift.go