]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: implement multi-control branches for riscv64
authorJoel Sing <joel@sing.id.au>
Mon, 30 Mar 2020 15:00:50 +0000 (02:00 +1100)
committerJoel Sing <joel@sing.id.au>
Mon, 27 Apr 2020 17:49:30 +0000 (17:49 +0000)
commit40f2dab0e1740965c014ce22d194cc3fa2976868
treed552aa65bd4012d4af90d7353c53fc3c631ea8a5
parent1518123114d12d852d92793bd986e8856ac13e25
cmd/compile: implement multi-control branches for riscv64

Implement multi-control branches for riscv64, switching to using the BNEZ
pseudo-instruction when rewriting conditionals. This will allow for further
branch optimisations to later be performed via rewrites.

Change-Id: I7f2c69f3c77494b403f26058c6bc8432d8070ad0
Reviewed-on: https://go-review.googlesource.com/c/go/+/226399
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Joel Sing <joel@sing.id.au>
src/cmd/compile/internal/riscv64/ssa.go
src/cmd/compile/internal/ssa/gen/RISCV64.rules
src/cmd/compile/internal/ssa/gen/RISCV64Ops.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteRISCV64.go