]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove trivial closure reference
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 9 Sep 2024 15:03:54 +0000 (22:03 +0700)
committerGopher Robot <gobot@golang.org>
Tue, 10 Sep 2024 21:30:16 +0000 (21:30 +0000)
commitd288776d9143370567fa56b44fa875d0e8fb02b6
treef8bc441aed9c604ca81306a1ee045cdba51217fd
parentfe69121bc538260cf91f11dab705335b690e51a3
cmd/compile: remove trivial closure reference

Trivial closures will be converted to global functions, thus they are
not closures anymore. Using fn.IsClosure function is enough, allow
removing the trivial/non-trivial closures in the code.

Change-Id: Iceb186dd92c1732b101e221ebc13406db35c69ea
Reviewed-on: https://go-review.googlesource.com/c/go/+/611995
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Tim King <taking@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/deadlocals/deadlocals.go
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/ir/func.go
src/cmd/compile/internal/ir/scc.go
src/cmd/compile/internal/staticinit/sched.go
src/cmd/compile/internal/walk/closure.go