diff options
author | Matthew Dempsky <mdempsky@google.com> | 2024-02-07 10:23:53 -0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-02-09 17:21:38 +0000 |
commit | b158ca9ae35fd98e383411633469819fdbc65eca (patch) | |
tree | c2edcb6079923733d7ce491a9300bab3b7151f46 /test | |
parent | a51713103b5769a792b691e313254b7806855fa6 (diff) | |
download | go-b158ca9ae35fd98e383411633469819fdbc65eca.tar.gz go-b158ca9ae35fd98e383411633469819fdbc65eca.zip |
cmd/compile: separate inline cost analysis from applying inlining
This CL separates the pass that computes inlinability from the pass
that performs inlinability. In particular, the latter can now happen
in any flat order, rather than bottom-up order. This also allows
inlining of calls exposed by devirtualization.
Change-Id: I389c0665fdc8288a6e25129a6744bfb1ace1eff7
Reviewed-on: https://go-review.googlesource.com/c/go/+/562319
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/fixedbugs/issue52193.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fixedbugs/issue52193.go b/test/fixedbugs/issue52193.go index 40e6dcb33b..32375d114f 100644 --- a/test/fixedbugs/issue52193.go +++ b/test/fixedbugs/issue52193.go @@ -32,7 +32,7 @@ func F(peerShare []byte) ([]byte, error) { // ERROR "leaking param: peerShare" func f() { // ERROR "can inline f" var i interface{ m() } = T(0) // ERROR "T\(0\) does not escape" - i.m() // ERROR "devirtualizing i.m" + i.m() // ERROR "devirtualizing i.m" "inlining call to T.m" } type T int |