]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/inline: revise -m=2 status messages
authorThan McIntosh <thanm@google.com>
Tue, 7 Nov 2023 15:28:56 +0000 (10:28 -0500)
committerThan McIntosh <thanm@google.com>
Tue, 21 Nov 2023 20:07:48 +0000 (20:07 +0000)
commitcfb281754ec94859e86962ee3a66b8347e3161ab
treecdc8a54890b656916254b883221ba7d62955a542
parent2e77b51df5b9f7753f500c6cbba8f0dab5bf2250
cmd/compile/internal/inline: revise -m=2 status messages

This patch revises the compiler's "-m=2" status messages related to
inlining. The "can inline" remarks will continue to use the same
format, but the remarks when a specific call site is inlined will be
changed to refer to the score used; before we had

  runtime/traceback.go:1131:28: inlining call to gotraceback
  runtime/traceback.go:1183:25: inlining call to readgstatus

and with GOEXPERIMENT=newinliner the new messages will be:

  runtime/traceback.go:1131:28: inlining call to gotraceback with score 62
  runtime/traceback.go:1183:25: inlining call to readgstatus with score 9

Change-Id: Ia86cf5351d29eda64a5426ca0a2a2ec0c2900d81
Reviewed-on: https://go-review.googlesource.com/c/go/+/540775
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/inl.go
src/cmd/compile/internal/inline/inlheur/analyze.go
src/cmd/compile/internal/inline/inlheur/scoring.go