]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't set Ntype in noder2 anymore
authorDan Scales <danscales@google.com>
Fri, 9 Apr 2021 13:30:20 +0000 (06:30 -0700)
committerDan Scales <danscales@google.com>
Fri, 9 Apr 2021 22:57:48 +0000 (22:57 +0000)
commit281d168e2debf7660f9ba5006ddbc1b4cda90ab7
tree21701a394f2e69b797ac51dade0e18b48d98bfac
parent756e2b1529592ffbe1760932d14f8e6eae3fda06
cmd/compile: don't set Ntype in noder2 anymore

Now that we are no longer calling the old typechecker at all during the
noder2 pass, we don't need to create and set an Ntype node ((which is
just a node representation of the type which we already know) for the
Name and Closure nodes. This should reduce memory usage a bit for -G=3.

Change-Id: I6b1345007ce067a89ee64955a53f25645c303f4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/308909
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/noder/expr.go
src/cmd/compile/internal/noder/object.go
src/cmd/compile/internal/noder/stencil.go