cmd/compile: output cost while inlining function with Debug['m'] > 1
#36780
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go build -gcflags=-m=2 .
If a function can not be inline, the error message will output the cost:
But if a function is inlinable, only
is output without cost. The behavior is not very consistent, and the cost info is also useful to user who try to optimize his code.
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: