]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add special case for testing first field of struct variable
authorIan Lance Taylor <iant@golang.org>
Sat, 14 Nov 2015 23:42:49 +0000 (15:42 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 16 Nov 2015 18:39:40 +0000 (18:39 +0000)
commit9aed0b7e3d3c9cbd5877fcbcecfcdec9111f5a81
tree7a901a48f0c129d3ef3763b0994f24c67de9a10f
parentbe1ef467756bff3c475321a2213182020454075e
cmd/compile: add special case for testing first field of struct variable

The change to the write barrier in https://golang.org/cl/16899 means
that the compiler now emits tests of the first field of a struct.  That
was using a register that was not used before.  This change fixes that
for amd64 by adding a special case for the first field of a struct.

Update #12416.

Change-Id: Ia57baa62cd741592fbeb9be82f1e846be73d6edd
Reviewed-on: https://go-review.googlesource.com/16933
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/amd64/gsubr.go
src/cmd/compile/internal/gc/gsubr.go