]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove unnecessary casts and types from riscv64 rules
authorMichael Munday <mndygolang+git@gmail.com>
Fri, 7 Nov 2025 00:00:50 +0000 (00:00 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 14 Nov 2025 18:59:53 +0000 (10:59 -0800)
commit1e5e6663e958dcc9579fb38ffcd8a1999d75128d
treeebecfcfdcb7d38cb92f9a1aa2f0e15622126c60e
parentddd8558e61c80f51a2c65565f8354d12d3c6a418
cmd/compile: remove unnecessary casts and types from riscv64 rules

This change shouldn't have any impact on codegen. It removes some
unnecessary int8 and int64 casts from the riscv64 rewrite rules.

It also removes explicit typing where the types already match:
`(OldOp <t>) => (NewOp <t>)` is the same as `(OldOp) => (NewOp)`.

Change-Id: Ic02b65da8f548c8b9ad9ccb6627a03b7bf6f050f
Reviewed-on: https://go-review.googlesource.com/c/go/+/719220
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Commit-Queue: Junyang Shao <shaojunyang@google.com>
src/cmd/compile/internal/ssa/_gen/RISCV64.rules
src/cmd/compile/internal/ssa/rewriteRISCV64.go