]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: optimize convT2I as a two-word copy when T is pointer-shaped
authorMichel Lespinasse <walken@google.com>
Fri, 18 Mar 2016 23:20:20 +0000 (16:20 -0700)
committerMichel Lespinasse <walken@google.com>
Tue, 29 Mar 2016 02:21:41 +0000 (02:21 +0000)
commit7427f2c4bdf45fcf2288395d0e70c0c2fbe7ebcf
tree85afba659125cc4545880899ced50284ecdedb42
parent79688ca58f59a65eee324694fd8a559dae8af149
cmd/compile: optimize convT2I as a two-word copy when T is pointer-shaped

See #14874

This change adds a compiler optimization for pointer shaped convT2I.
Since itab symbols are now emitted by the compiler, the itab address can
be directly moved into the iface structure.

Change-Id: I311483af544519ca682c5f872960717ead772f26
Reviewed-on: https://go-review.googlesource.com/20901
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/compile/internal/gc/reflect.go
src/cmd/compile/internal/gc/walk.go