]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/inline: refactor inline budget computation
authorThan McIntosh <thanm@google.com>
Mon, 31 Jul 2023 19:26:26 +0000 (15:26 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 10 Aug 2023 18:54:11 +0000 (18:54 +0000)
commit6eb31c1a00327fb1c757d78519f8dcc9ace6ceaf
treee5210aceb9b1bca9e04fb5fc8ecdc28cd68370e4
parent7087b8ac4c2eeab4fe52e498fa55a0c95ea89933
cmd/compile/internal/inline: refactor inline budget computation

Split out the code that computes the initial inline "hairyness" budget
for a function so that it can be reused (in a later patch). This is a
pure refactoring; no change in compiler functionality.

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