Due to improved optimisation, we no longer emit SUBW for the write barrier
checks on riscv64, hence remove special handling in markUnsafePoints.
Change-Id: Ia1150c3e11f25e183735e58f8716a511d9e90fb3
Reviewed-on: https://go-review.googlesource.com/c/go/+/222638
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
v = v.Args[0]
continue
}
- case ssa.OpRISCV64SUBW:
- // RISCV64 lowers Neq32 to include a SUBW with multiple arguments.
- // TODO(jsing): it would be preferable not to use Neq32 for
- // writeBuffer.enabled checks on this platform.
- v = v.Args[0]
- continue
case ssa.Op386MOVLload, ssa.OpARM64MOVWUload, ssa.OpPPC64MOVWZload, ssa.OpWasmI64Load32U:
// Args[0] is the address of the write
// barrier control. Ignore Args[1],