cmd/compile: consider giving a warning or an error if a PGO profile looks mismatched #70291
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Thinking
Milestone
For example, if I run
go build
on a Go codebase with adefault.pgo
file, and the PGO logic can see that the majority of the symbols mentioned in the profile are not present in the source code at all, it could give a warning or an error to the user because one of two things might have happened:In both cases, it's possible that PGO may still give some minor benefit, but it's hard to say. Most importantly, I think we should surface this to the user so that they can grab a new profile.
(this idea came up during a brief PGO discussion at the Go contributor summit at golab.io)
The text was updated successfully, but these errors were encountered: