]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/inline: add framework to compute func "properties"
authorThan McIntosh <thanm@google.com>
Thu, 29 Jun 2023 19:37:26 +0000 (15:37 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 10 Aug 2023 18:53:06 +0000 (18:53 +0000)
commitb888ec4ac3715b3b8d153f697ce35f932b33cf67
tree23dbcf9a406c72819eaff9f603950853f2d2218f
parent03d457a2214366f209f5855afc0a93e6c36c6e1f
cmd/compile/internal/inline: add framework to compute func "properties"

Add some machinery to support computing function "properties" for use
in driving inlining heuristics, and a unit testing framework to check
to see if the property computations are correct for a given set of
canned Go source files. This CL is mainly the analysis skeleton and a
testing framework; the code to compute the actual props will arrive in
a later patch.

Updates #61502.

Change-Id: I7970b64f713d17d7fdd7e8e9ccc7d9b0490571bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/511557
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/base/debug.go
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/inline/inlheur/analyze.go [new file with mode: 0644]
src/cmd/compile/internal/inline/inlheur/funcprops_test.go [new file with mode: 0644]
src/cmd/compile/internal/inline/inlheur/testdata/props/README.txt [new file with mode: 0644]
src/cmd/compile/internal/inline/inlheur/testdata/props/stub.go [new file with mode: 0644]
src/cmd/compile/internal/inline/inlheur/trace_off.go [new file with mode: 0644]
src/cmd/compile/internal/inline/inlheur/trace_on.go [new file with mode: 0644]