aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/devirtualize
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2023-10-31 13:21:41 -0400
committerThan McIntosh <thanm@google.com>2023-11-16 20:15:25 +0000
commit3f04f959d2d8bba0b636aa0c4ac705ae29e2c7b0 (patch)
treec6f1a783642a9717b4926ad62d085f054ec6223c /src/cmd/compile/internal/devirtualize
parentd21afcdf00e5401cf0ffae7e346abfe3821912a9 (diff)
downloadgo-3f04f959d2d8bba0b636aa0c4ac705ae29e2c7b0.tar.xz
cmd/compile/internal/inline: refactor AnalyzeFunc
This patch reworks how inlheur.AnalyzeFunc is called by the top level inliner. Up until this point the strategy was to analyze a function at the point where CanInline is invoked on it, however it simplifies things to instead make the call outside of CanInline (for example, so that directly recursive functions can be analyzed). Also as part of this patch, change things so that we no longer run some of the more compile-time intensive analysis on functions that haven't been marked inlinable (so as to safe compile time), and add a teardown/cleanup hook in the inlheur package to be invoked by the inliner when we're done inlining. Change-Id: Id0772a285d891b0bed66dd86adaffa69d973c26a Reviewed-on: https://go-review.googlesource.com/c/go/+/539318 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/devirtualize')
0 files changed, 0 insertions, 0 deletions