cmd/compile: fuse escape analysis parameter tagging loops

Simplifies the code somewhat and allows removing Param.Field.

Passes toolstash-check.

Change-Id: Id854416aea8afd27ce4830ff0f5ff940f7353792
Reviewed-on: https://go-review.googlesource.com/99336
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
Matthew Dempsky 2018-03-07 15:11:54 -08:00
parent 7d654af586
commit e3127f023f
4 changed files with 12 additions and 35 deletions

View file

@ -24,7 +24,7 @@ func TestSizeof(t *testing.T) {
}{
{Func{}, 128, 232},
{Name{}, 32, 56},
{Param{}, 28, 56},
{Param{}, 24, 48},
{Node{}, 76, 128},
}