1
0
mirror of https://github.com/golang/go synced 2024-11-27 04:31:21 -07:00

cmd/internal/obj/x86: return comparison directly

Change-Id: I4b596b252c1785b13c4a166e9ef5f4ae812cd1bc
Reviewed-on: https://go-review.googlesource.com/c/go/+/436704
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
cuiweixie 2022-09-29 20:59:41 +08:00 committed by Gopher Robot
parent 1a6af5f7a0
commit 574b5decf2

View File

@ -3951,10 +3951,7 @@ func isax(a *obj.Addr) bool {
return true
}
if a.Index == REG_AX {
return true
}
return false
return a.Index == REG_AX
}
func subreg(p *obj.Prog, from int, to int) {