]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: improve ir.StaticValue and extract ir.StaticCalleeName
authorMatthew Dempsky <mdempsky@google.com>
Sat, 12 Aug 2023 01:21:22 +0000 (18:21 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 15 Aug 2023 20:43:50 +0000 (20:43 +0000)
commit3be2176d92ad318b9085980b0b7f09f30541afb3
tree644a1d7dca7398cae3a039c0526d0b35773d0059
parente95ca9154a6d326248357e87caa4e24368bcb68b
cmd/compile: improve ir.StaticValue and extract ir.StaticCalleeName

This CL extends ir.StaticValue to also work on closure variables.

Also, it extracts the code from escape analysis that's responsible for
determining the static callee of a function. This will be useful when
go/defer statement normalization is moved to typecheck.

Change-Id: I69e1f7fb185658dc9fbfdc69d0f511c84df1d3ac
Reviewed-on: https://go-review.googlesource.com/c/go/+/518959
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/escape/call.go
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/noder/reader.go