]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: minor Cgen_checknil cleanup
authorMichael Munday <munday@ca.ibm.com>
Tue, 12 Apr 2016 14:27:16 +0000 (10:27 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 12 Apr 2016 15:11:51 +0000 (15:11 +0000)
commit7f5a063d157c777d8e78a567fc9538929bfd38f5
treeff8b07379c092cf474bf59a68c438a1877e42034
parentcd85f711c0b6847cbfe4e05f4402df075ea936de
cmd/compile/internal/gc: minor Cgen_checknil cleanup

Most architectures can only generate nil checks when the
the address to check is in a register. Currently only
amd64 and 386 can generate checks for addresses that
reside in memory. This is unlikely to change so the architecture
check has been inverted.

Change-Id: I73697488a183406c79a9039c62823712b510bb6a
Reviewed-on: https://go-review.googlesource.com/21861
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/pgen.go