]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: flag 'large' functions when -m=2+ in effect
authorThan McIntosh <thanm@google.com>
Tue, 3 Jan 2023 18:11:10 +0000 (13:11 -0500)
committerThan McIntosh <thanm@google.com>
Tue, 24 Jan 2023 13:28:54 +0000 (13:28 +0000)
commit733ba921875ea11088f1f447cbca418f651aae5c
tree11d60bc069e31b46c7fe78d60157072bc50c57f4
parent1951857ec07c1d491e1836770a647d3902934a67
cmd/compile: flag 'large' functions when -m=2+ in effect

When -m=N (where N > 1) is in effect, include a note in the trace
output if a given function is considered "big" during inlining
analysis, since this causes the inliner to be less aggressive. If a
small change to a large function happens to nudge it over the large
function threshold, it can be confusing for developers, thus it's
probably worth including this info in the remark output.

Change-Id: Id31a1b76371ab1ef9265ba28a377f97b0247d0a7
Reviewed-on: https://go-review.googlesource.com/c/go/+/460317
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/inline/inl.go
test/inline_big.go