]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: combine operations with immediate on riscv64
authorJoel Sing <joel@sing.id.au>
Sat, 3 Sep 2022 19:23:07 +0000 (05:23 +1000)
committerJoel Sing <joel@sing.id.au>
Mon, 19 Sep 2022 19:01:45 +0000 (19:01 +0000)
commit7234c90352e5ea7769c02808017fb20043ea8210
treeb5bb0b01df53e1a3a6d325c93f3738d24b8499bb
parent83d94daec2636badf02ecda18f7a7c1f4eb1fd74
cmd/compile: combine operations with immediate on riscv64

Replace two immediate operations with one, where possible.

Change-Id: Idc00e868155c9ca1d872aaaf70ea1f73e9eac4d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/428497
Reviewed-by: Wayne Zuo <wdvxdr@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/RISCV64.rules
src/cmd/compile/internal/ssa/rewriteRISCV64.go