go/src/cmd/compile/internal/base
Cherry Mui b07e845e76 cmd/compile: use CDF to determine PGO inline threshold
Currently in PGO we use a percentage threshold to determine if a
callsite is hot. This CL uses a different method -- treating the
hottest callsites that make up cumulatively top X% of total edge
weights as hot (X=95 for now). This default might work better for
a wider range of profiles. (The absolute threshold can still be
changed by a flag.)

For #55022.

Change-Id: I7e3b6f0c3cf23f9a89dd5994c10075b498bf14ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/447016
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
2022-11-03 16:00:30 +00:00
..
base.go cmd/compile: drop "buildcfg" from no instrument packages 2022-07-05 20:07:49 +00:00
bootstrap_false.go cmd/cgo, cmd/compile, cmd/link: remove old style build tags 2022-10-04 19:36:17 +00:00
bootstrap_true.go cmd/cgo, cmd/compile, cmd/link: remove old style build tags 2022-10-04 19:36:17 +00:00
debug.go cmd/compile: use CDF to determine PGO inline threshold 2022-11-03 16:00:30 +00:00
flag.go cmd/compile: renovate GOSSAHASH 2022-11-02 17:01:39 +00:00
hashdebug.go cmd/compile: renovate GOSSAHASH 2022-11-02 17:01:39 +00:00
hashdebug_test.go cmd/compile: renovate GOSSAHASH 2022-11-02 17:01:39 +00:00
link.go all: use ":" for compiler generated symbols 2022-08-09 11:28:56 +00:00
mapfile_mmap.go cmd/cgo, cmd/compile, cmd/link: remove old style build tags 2022-10-04 19:36:17 +00:00
mapfile_read.go cmd/cgo, cmd/compile, cmd/link: remove old style build tags 2022-10-04 19:36:17 +00:00
print.go cmd/compile/internal: fix a few function names on comments 2022-10-03 17:47:02 +00:00
timings.go [dev.regabi] cmd/compile: move helpers into package base [generated] 2020-12-23 06:37:55 +00:00