]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: avoid extending when already sufficiently masked on riscv64
authorJoel Sing <joel@sing.id.au>
Sat, 27 Aug 2022 16:29:12 +0000 (02:29 +1000)
committerJoel Sing <joel@sing.id.au>
Wed, 31 Aug 2022 20:05:06 +0000 (20:05 +0000)
commit9085ff585933d49261372b5a5fdf0686abc163c2
tree0e302bc616b9e5aa6ffc3d265d411e6f4c2b3c12
parent3f65ddbfd36af7aa0b1e28aebe9eb054462f7d8a
cmd/compile: avoid extending when already sufficiently masked on riscv64

Removes more than 2000 instructions from the Go binary on linux/risv64.

Change-Id: I6db3e3b1c93f29f00869adcba7c6192bfb90b25c
Reviewed-on: https://go-review.googlesource.com/c/go/+/426259
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Wayne Zuo <wdvxdr@golangcn.org>
Reviewed-by: Meng Zhuo <mzh@golangcn.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/RISCV64.rules
src/cmd/compile/internal/ssa/rewriteRISCV64.go