]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: simplify Slicemask on riscv64
authorJoel Sing <joel@sing.id.au>
Tue, 25 Feb 2020 17:01:29 +0000 (04:01 +1100)
committerJoel Sing <joel@sing.id.au>
Wed, 26 Feb 2020 18:00:53 +0000 (18:00 +0000)
commit025a4faf5fd70b8be4a77d19762eb2b4da8754b0
tree1d9216724ceee9b848a44cceffb7dead05d028bd
parentc27dd0c9e581edb71c834e161db6a920ca239997
cmd/compile: simplify Slicemask on riscv64

Slicemask can be performed with three immediate instructions, rather than the
six currently in use.

Change-Id: I3f8ca2d5affd1403db8fa79b356f248e6e9332c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/220923
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/RISCV64.rules
src/cmd/compile/internal/ssa/rewriteRISCV64.go