Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial support for PGO instrumentation/use in inputgen #2

Open
wants to merge 1 commit into
base: input_gen
Choose a base branch
from

Conversation

boomanaiden154
Copy link

This patch adds flags (and a test) so that the main input-gen binary can add instrumentation to modules and also compile the run modules with a PGO profile. This enables downstream uses of PGO, such as block coverage analysis. Passing the flags directly into the input-gen binary for recompiling with a PGO profile probably isn't what will be used for large scale testing (instead just opting to recompile the bitcode), but probably won't hurt to support.

This is also currently not selective in terms of what gets instrumented. This means that parts of the runtime will end up in the profile. This shouldn't be an issue, but something that we may want to work on in the future.

This patch adds flags (and a test) so that the main input-gen binary can
add instrumentation to modules and also compile the run modules with a
PGO profile. This enables downstream uses of PGO, such as block coverage
analysis. Passing the flags directly into the input-gen binary for
recompiling with a PGO profile probably isn't what will be used for
large scale testing (instead just opting to recompile the bitcode), but
probably won't hurt to support.

This is also currently not selective in terms of what gets instrumented.
This means that parts of the runtime will end up in the profile. This
shouldn't be an issue, but something that we may want to work on in the
future.
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