]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: avoid the use of XOR for boolean equality on riscv64
authorJoel Sing <joel@sing.id.au>
Tue, 30 Aug 2022 08:59:53 +0000 (18:59 +1000)
committerJoel Sing <joel@sing.id.au>
Mon, 19 Sep 2022 19:01:06 +0000 (19:01 +0000)
commit83d94daec2636badf02ecda18f7a7c1f4eb1fd74
tree91b1999cd084cf19987d0822efa54fefe97929fe
parentfd82718e06a7b8a32becb1751592854d49904075
cmd/compile: avoid the use of XOR for boolean equality on riscv64

The use of SEQZ/SNEZ and SUB allows for other optimisations to be utilised,
particularly absorption into branch equality conditions.

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