aboutsummaryrefslogtreecommitdiff
path: root/src/net/parse.go
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2023-08-17 15:30:23 -0400
committerThan McIntosh <thanm@google.com>2023-09-15 12:45:59 +0000
commit00073c25f65947dc4a331dcc6b20cb215fb03341 (patch)
treeb64ea85391d41576134ef0678c7942a5b96ba2e5 /src/net/parse.go
parenta9cfbec17b12166c56aeb9808b5d1b7393e90f43 (diff)
downloadgo-00073c25f65947dc4a331dcc6b20cb215fb03341.tar.xz
cmd/compile/internal/inline/inlheur: rescore callsites based on result use
Add a post-processing pass that updates the scores on callsites based on how their results are used. This is similar to the "param feeds unmodified into <XXX>" heuristics, but applies to returned results instead: if we know that function F always returns a constant, and we can see that the result from a given call feeds unmodified into an if/switch, then decrease the score on the call to encourage inlining. Change-Id: If513765c79d868cbdf672facbff9d92ad24f909e Reviewed-on: https://go-review.googlesource.com/c/go/+/521819 Reviewed-by: Matthew Dempsky <mdempsky@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/net/parse.go')
0 files changed, 0 insertions, 0 deletions