]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/inline: add call site flag generation
authorThan McIntosh <thanm@google.com>
Tue, 18 Jul 2023 15:45:42 +0000 (11:45 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 8 Sep 2023 23:03:23 +0000 (23:03 +0000)
commitdc0548f92fa23fe61dbf165e29bcbad09d7fb499
treeffc59a14f52fd68c5cab47ca39fe10569807f763
parent19ca2337c57a944ccce7298f7c9b71c95408a987
cmd/compile/internal/inline: add call site flag generation

Add code to detect call sites that are nested in loops, call sites
that are on an unconditional path to panic/exit, and call sites within
"init" functions. The panic-path processing reuses some of the
logic+state already present for the function flag version of "calls
panic/exit".

Updates #61502.

Change-Id: I1d728e0763282d3616a9cbc0a07c5cda115660f3
Reviewed-on: https://go-review.googlesource.com/c/go/+/511565
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/inline/inlheur/analyze.go
src/cmd/compile/internal/inline/inlheur/analyze_func_callsites.go
src/cmd/compile/internal/inline/inlheur/analyze_func_flags.go
src/cmd/compile/internal/inline/inlheur/funcprops_test.go
src/cmd/compile/internal/inline/inlheur/testdata/props/README.txt
src/cmd/compile/internal/inline/inlheur/testdata/props/calls.go [new file with mode: 0644]
src/cmd/compile/internal/inline/inlheur/testdata/props/funcflags.go