Skip to content

PGO Tweaks#1022

Open
indygreg wants to merge 3 commits intomainfrom
gps-pgo-tweaks
Open

PGO Tweaks#1022
indygreg wants to merge 3 commits intomainfrom
gps-pgo-tweaks

Conversation

@indygreg
Copy link
Collaborator

@indygreg indygreg commented Mar 21, 2026

See commit messages and inline comments for more details.

Some of these are good candidates for up-streaming. Although we make assumptions about availability of [modern] LLVM. So upstream patches may require configure work to sniff toolchain capabilities. It was vastly easier to implement the simple patches in PBS first.

@indygreg indygreg marked this pull request as ready for review March 21, 2026 04:46
LLVM has some utilities to print statistics about PGO data. Let's
print a few views so we can better debug PGO instrumentation.
This is more reliable. See comment in added patch for context.
Contrary to popular belief, the system doesn't need to be "idle" to
collect profiling data. See inline comment +
https://github.com/llvm/llvm-project/blob/main/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
for the PGO implementation for the evidence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant