]> Cypherpunks repositories - gostls13.git/commit
5g: don't generate reg variables for direct-called functions
authorAustin Clements <austin@google.com>
Wed, 5 Nov 2014 20:14:47 +0000 (15:14 -0500)
committerAustin Clements <austin@google.com>
Wed, 5 Nov 2014 20:14:47 +0000 (15:14 -0500)
commitbb4a358af3469a1dee0cb5bcae245865233aa9ea
tree89a5dec9f297989836d2f06df4d0f3adac5b2a5f
parentc6e53fea107563225ec85889b4d88d5ffbd85c17
5g: don't generate reg variables for direct-called functions

The test intended to skip direct calls when creating
registerization variables was testing p->to.type instead of
p->to.name, so it always failed, causing regopt to create
unnecessary variables for these names.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/169110043
src/cmd/5g/reg.c