]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: optimize small zeroing/moving on riscv64
authorMichaƂ Derkacz <michal@Lnet.pl>
Thu, 29 Oct 2020 00:10:49 +0000 (01:10 +0100)
committerJoel Sing <joel@sing.id.au>
Sun, 1 Nov 2020 13:23:48 +0000 (13:23 +0000)
commit0be8280d8d01ef348fede17aef13aecf15cd7091
treeb2edfd0f51fd6e9929f605711324b3f9c26696e1
parent5a267c840ae16c1cc7352caa14da5f500d03d338
cmd/compile: optimize small zeroing/moving on riscv64

Optimize small (s <= 32) zeroing/moving operations on riscv64.
Avoid generating unaligned memory accesses.

The code is almost one to one translation of the corresponding
mips64 rules with additional rule for s=32.

Change-Id: I753b0b8e53cb9efcf43c8080cab90f3d03539fb8
Reviewed-on: https://go-review.googlesource.com/c/go/+/266217
Reviewed-by: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/RISCV64.rules
src/cmd/compile/internal/ssa/rewriteRISCV64.go