]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: adjust PGO inlining default parameters
authorCherry Mui <cherryyz@google.com>
Thu, 10 Nov 2022 16:33:00 +0000 (11:33 -0500)
committerCherry Mui <cherryyz@google.com>
Thu, 10 Nov 2022 23:11:59 +0000 (23:11 +0000)
commit1b03568ae18715ad081cc57197b61388c8e6caa4
treebbde065d0783ae8ecb54445ed882faab4a18655d
parent5497300d9c9327005fa9ab14c6897d6c883139c5
cmd/compile: adjust PGO inlining default parameters

Adjust PGO inlining default parameters to 99% CDF threshold and
2000 budget. Benchmark results (mostly from Sweet) show that this
set of parameters performs reasonably well, with a few percent
speedup at the cost of a few percent binary size increase.

Also rename the debug flags to start with "pgo", to make it clear
that they are related to PGO.

Change-Id: I0749249b1298d1dc55a28993c37b3185f9d7639d
Reviewed-on: https://go-review.googlesource.com/c/go/+/449477
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/base/debug.go
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/test/pgo_inl_test.go