cmd/compile: avoid allocating a Nodes for readonly method receivers
cmd/compile: avoid allocating a Nodes for readonly method receivers

We were allocating a Nodes for common method calls
that did not modify the Nodes.
Though there is no clear wall time impact,
this significantly reduces the number of allocations,
so it seems worth doing.

Passes toolstash -cmp.

name       old alloc/op    new alloc/op    delta
Template      59.0MB ± 0%     58.6MB ± 0%   -0.81%        (p=0.000 n=25+25)
Unicode       41.4MB ± 0%     41.3MB ± 0%   -0.18%        (p=0.000 n=25+25)
GoTypes        198MB ± 0%      197MB ± 0%   -0.80%        (p=0.000 n=24+25)
Compiler       875MB ± 0%      865MB ± 0%   -1.09%        (p=0.000 n=25+25)

name       old allocs/op   new allocs/op   delta
Template        581k ± 0%       520k ± 0%  -10.42%        (p=0.000 n=25+25)
Unicode         413k ± 0%       403k ± 0%   -2.30%        (p=0.000 n=25+25)
GoTypes        1.78M ± 0%      1.58M ± 0%  -11.18%        (p=0.000 n=25+25)
Compiler       7.66M ± 0%      6.47M ± 0%  -15.51%        (p=0.000 n=25+25)

Change-Id: I012a9f4b333821bdf61b4f2bdff4ce5c3b5d3057
Reviewed-on: https://go-review.googlesource.com/21056
Reviewed-by: Brad Fitzpatrick <ae9783c0b0efc69cd85ab025ddd17aa44cdc4aa5@golang.org>
Reviewed-by: Ian Lance Taylor <87e9c6d529889242b7e184afb632328636553ab4@golang.org>

vsekhar/elastic-go,vanloswang/go,ImJasonH/go,vanloswang/go,christopher-henderson/Go,cloudflare/go,polyverse-security/go,4ad/go,linux-on-ibm-z/go,golang/go,theif519/go,ganboing/go-esx,derekmarcotte/go,vanloswang/go,codestation/go,ganboing/go-esx,golang/go,polyverse-security/go,Cofyc/go,derekmarcotte/go,nawawi/go,ganboing/go-esx,codestation/go,derekmarcotte/go,miolini/go,akutz/go,4ad/go,josharian/go,akutz/go,nawawi/go,suncycheng/go,goodlang/good,ImJasonH/go,goodlang/good,akutz/go,codestation/go,Cofyc/go,derekmarcotte/go,derekmarcotte/go,CAFxX/go,4ad/go,suncycheng/go,vsekhar/elastic-go,cloudflare/go,4ad/go,polyverse-security/go,goodlang/good,ImJasonH/go,theif519/go,CAFxX/go,CAFxX/go,nawawi/go,suncycheng/go,4ad/go,josharian/go,josharian/go,ganboing/go-esx,golang/go,derekmarcotte/go,goodlang/good,vanloswang/go,goodlang/good,ImJasonH/go,miolini/go,ganboing/go-esx,josharian/go,linux-on-ibm-z/go,ImJasonH/go,CAFxX/go,vsekhar/elastic-go,akutz/go,ganboing/go-esx,momchil-velikov/go,CAFxX/go,momchil-velikov/go,vanloswang/go,golang/go,linux-on-ibm-z/go,theif519/go,ganboing/go-esx,goodlang/good,4ad/go,miolini/go,akutz/go,vanloswang/go,nawawi/go,theif519/go,derekmarcotte/go,linux-on-ibm-z/go,cloudflare/go,josharian/go,cloudflare/go,polyverse-security/go,Cofyc/go,miolini/go,josharian/go,vsekhar/elastic-go,polyverse-security/go,linux-on-ibm-z/go,suncycheng/go,cloudflare/go,CAFxX/go,suncycheng/go,4ad/go,suncycheng/go,golang/go,codestation/go,vsekhar/elastic-go,josharian/go,theif519/go,linux-on-ibm-z/go,CAFxX/go,Cofyc/go,momchil-velikov/go,Cofyc/go,nawawi/go,codestation/go,suncycheng/go,polyverse-security/go,polyverse-security/go,polyverse-security/go,ImJasonH/go,golang/go,derekmarcotte/go,miolini/go,codestation/go,ganboing/go-esx,suncycheng/go,momchil-velikov/go,cloudflare/go,miolini/go,goodlang/good,josharian/go,vsekhar/elastic-go,Cofyc/go,momchil-velikov/go,momchil-velikov/go,golang/go,linux-on-ibm-z/go,golang/go,goodlang/good,Cofyc/go,theif519/go,codestation/go,momchil-velikov/go,miolini/go,nawawi/go,vanloswang/go,akutz/go,cloudflare/go,nawawi/go,theif519/go,cloudflare/go,vsekhar/elastic-go,nawawi/go,akutz/go,miolini/go,Cofyc/go,theif519/go,ImJasonH/go,ImJasonH/go,akutz/go,codestation/go,momchil-velikov/go,vanloswang/go,CAFxX/go,linux-on-ibm-z/go,4ad/go,vsekhar/elastic-go