Skip to content

cmd/compile: update compiler's PGO profile #60234

Open

Description

@cherrymui

CL https://golang.org/cl/451292 adds a default profile of the compiler, so we can build the compiler with PGO. As the compiler's source code evolves, we may want to periodically update the profile.

cc @prattmic @aclements

Activity

  1. added
    recurringIssues that should never be closed, but moved to the next milestone once fixed in the current one.
    and removed
    compiler/runtimeIssues related to the Go compiler and/or runtime.
    on May 16, 2023
  2. added
    NeedsFixThe path to resolution is known, but the work has not been done.
    on May 17, 2023
  3. aclements commented on May 23, 2023

    @aclements
    Member

    We discussed this in the release team meeting today. The plan is to add this as a relui step, to be performed as part of creating rc1. We can also run the step as a one-off if necessary (e.g., after any major compiler refactoring).

    Ideally we can shrink the profile a little. Currently it's ~350K, which is just big enough to be a little annoying to update regularly in git.

    cc @golang/release

  4. changed the title [-]cmd/compile: periodically update compiler's PGO profile[/-] [+]cmd/compile: update compiler's PGO profile as part of rc1 relui flow[/+] on May 23, 2023
  5. added
    Buildersx/build issues (builders, bots, dashboards)
    on May 23, 2023
  6. heschi commented on May 23, 2023

    @heschi
    Contributor

    We should discuss whether to try to get it done for this cycle. On the one hand it's not very necessary, but on the other it might be best to strike while the iron is hot.

  7. changed the title [-]cmd/compile: update compiler's PGO profile as part of rc1 relui flow[/-] [+]cmd/compile, x/build/cmd/relui: update compiler's PGO profile as part of rc1 relui flow[/+] on May 25, 2023
  8. cherrymui commented on Jun 1, 2023

    @cherrymui
    MemberAuthor

    Ideally we can shrink the profile a little

    When I did it I put GOROOT in /tmp so the file paths are short. We could probably also trim cold nodes from the profile to reduce size.

  9. gopherbot commented on Dec 2, 2023

    @gopherbot
    Contributor

    Change https://go.dev/cl/546337 mentions this issue: cmd/compile: update PGO profile

  10. added a commit that references this issue on Dec 4, 2023
  11. added a commit that references this issue on Feb 18, 2024
  12. 21 remaining items

  13. changed the title [-]cmd/compile, x/build/cmd/relui: update compiler's PGO profile as part of rc1 relui flow[/-] [+]cmd/compile: update compiler's PGO profile[/+] on Jun 11, 2025
  14. gopherbot commented on Dec 8, 2025

    @gopherbot
    Contributor

    Change https://go.dev/cl/728121 mentions this issue: cmd/compile: update default PGO profile

  15. added
    okay-after-rc1Used by release team to mark a release-blocker issue as okay to resolve either before or after rc1
    on Dec 8, 2025
  16. removed
    okay-after-rc1Used by release team to mark a release-blocker issue as okay to resolve either before or after rc1
    on Dec 16, 2025
  17. cherrymui commented on Jan 8, 2026

    @cherrymui
    MemberAuthor

    Attempted to do it in CL 728121 for Go 1.26. The improvement is very small with the new profile. And that CL triggered a compiler failure with the GOEXPERIMENT=newinliner. We can skip updating for 1.26.

    We should look into the failure with newinliner. But it is a separate issue and doesn't block Go 1.26 release.

  18. modified the milestones: Go1.26, Go1.27 on Jan 8, 2026
  19. added
    okay-after-rc1Used by release team to mark a release-blocker issue as okay to resolve either before or after rc1
    on May 26, 2026
  20. dmitshur commented on May 26, 2026

    @dmitshur
    Member

    This should be safe to do before or after Go 1.27 RC 1, probably better no later than RC 2. Added that label for visibility.

  21. gopherbot commented on Jun 18, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/792120 mentions this issue: cmd/compile: update default PGO profile

  22. cherrymui commented on Jun 18, 2026

    @cherrymui
    MemberAuthor

    Updated for 1.27. Move to 1.28.

  23. modified the milestones: Go1.27, Go1.28 on Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Buildersx/build issues (builders, bots, dashboards)NeedsFixThe path to resolution is known, but the work has not been done.okay-after-rc1Used by release team to mark a release-blocker issue as okay to resolve either before or after rc1recurringIssues that should never be closed, but moved to the next milestone once fixed in the current one.release-blocker

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions