]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/inline: refactor heuristics analyzers
authorThan McIntosh <thanm@google.com>
Fri, 27 Oct 2023 12:15:38 +0000 (08:15 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 16 Nov 2023 20:15:01 +0000 (20:15 +0000)
commitd21afcdf00e5401cf0ffae7e346abfe3821912a9
tree9cd7a4a5a4b1083919c708dc6e2f2211b52711c2
parent322cd4e8078efc3c903aab2ab6fd1e0f200b282b
cmd/compile/internal/inline: refactor heuristics analyzers

This very minor refactoring changes the heuristics analysis code to
avoid running result-flag or param-flag analyzers on functions that
don't have any interesting results or parameters (so as to save a bit
of compile time). No change otherwise in heuristics functionality.

Change-Id: I7ee13f0499cc3d14d5638e2193e4bd8d7b690e5b
Reviewed-on: https://go-review.googlesource.com/c/go/+/537976
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/inline/inlheur/analyze.go
src/cmd/compile/internal/inline/inlheur/analyze_func_params.go
src/cmd/compile/internal/inline/inlheur/analyze_func_returns.go
src/cmd/compile/internal/inline/inlheur/testdata/props/acrosscall.go
src/cmd/compile/internal/inline/inlheur/testdata/props/calls.go
src/cmd/compile/internal/inline/inlheur/testdata/props/funcflags.go
src/cmd/compile/internal/inline/inlheur/testdata/props/params.go
src/cmd/compile/internal/inline/inlheur/testdata/props/returns.go
src/cmd/compile/internal/inline/inlheur/testdata/props/returns2.go