]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: discount calls to closure variables
authorDavid Chase <drchase@google.com>
Mon, 14 Oct 2024 17:28:28 +0000 (13:28 -0400)
committerDavid Chase <drchase@google.com>
Tue, 22 Oct 2024 18:15:24 +0000 (18:15 +0000)
commitad7f736d8f51ea03166b698256385c869968ae3e
tree6bab2d04fb5dc99f962feed33a3177d672ec857e
parenta464ffda3e44c87de946cc29f719794a30e9b3f4
cmd/compile: discount calls to closure variables

This causes more inlining for rangefunc code.
The PAUTOHEAP case catches closure-passed-as-param
to function that returns a closure, that calls the
outer PPARAM.

Change-Id: I927cf2e1924ed2191e0ad8be9a1f2e793b6f2b38
Reviewed-on: https://go-review.googlesource.com/c/go/+/620220
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/inline/inl.go