]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: add pgohash for debugging/bisecting PGO optimizations
authorCherry Mui <cherryyz@google.com>
Fri, 15 Sep 2023 16:13:09 +0000 (12:13 -0400)
committerCherry Mui <cherryyz@google.com>
Tue, 19 Sep 2023 15:42:58 +0000 (15:42 +0000)
commit3fb86fb8645ceb6163d1a9f573c2b4eec2a310f9
tree92c0f9ea7adc8d2a042971fabdb56396f050a9bc
parenteca5a97340e6b475268a522012f30e8e25bb8b8f
cmd/compile: add pgohash for debugging/bisecting PGO optimizations

When a PGO build fails or produces incorrect program, it is often
unclear what the problem is. Add pgo hash so we can bisect to
individual optimization decisions, which often helps debugging.

Related to #58153.

Change-Id: I651ffd9c53bad60f2f28c8ec2a90a3f532982712
Reviewed-on: https://go-review.googlesource.com/c/go/+/528400
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/cmd/compile/internal/base/debug.go
src/cmd/compile/internal/base/flag.go
src/cmd/compile/internal/base/hashdebug.go
src/cmd/compile/internal/devirtualize/pgo.go
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/test/pgo_inl_test.go