]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove redundant SEQZ/SNEZ on riscv64
authorJoel Sing <joel@sing.id.au>
Sat, 27 Aug 2022 20:11:43 +0000 (06:11 +1000)
committerJoel Sing <joel@sing.id.au>
Wed, 7 Sep 2022 05:39:23 +0000 (05:39 +0000)
commit77da976419ebef9beec480e86202db7a32ebd181
tree9f02357dd7e9cc17976c54027f222191e0b37087
parentb6a6847b2f33dc8fb231c78cc4d807eaf10a133a
cmd/compile: remove redundant SEQZ/SNEZ on riscv64

In particular, (SEQZ (SNEZ x)) can arise from (Not (IsNonNil x)).

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