mirror of https://github.com/golang/go.git
cmd/compile: remove special handling for OpRISCV64SUBW in markUnsafePoints
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>
This commit is contained in:
parent
da07c59f24
commit
9f74f0afa6
|
|
@ -705,12 +705,6 @@ func (lv *Liveness) markUnsafePoints() {
|
|||
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],
|
||||
|
|
|
|||
Loading…
Reference in New Issue