mirror of
https://github.com/golang/go
synced 2024-09-05 16:04:50 +00: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:
parent
1a6af5f7a0
commit
574b5decf2
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue