]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: separate inline cost analysis from applying inlining
authorMatthew Dempsky <mdempsky@google.com>
Wed, 7 Feb 2024 18:23:53 +0000 (10:23 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 9 Feb 2024 17:21:38 +0000 (17:21 +0000)
commitb158ca9ae35fd98e383411633469819fdbc65eca
treec2edcb6079923733d7ce491a9300bab3b7151f46
parenta51713103b5769a792b691e313254b7806855fa6
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>
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/inline/interleaved/interleaved.go
test/fixedbugs/issue52193.go