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

[Clang] -fprofile-sample-use option has not effect #112391

Open
mikolaj-pirog opened this issue Oct 15, 2024 · 0 comments · May be fixed by #112750
Open

[Clang] -fprofile-sample-use option has not effect #112391

mikolaj-pirog opened this issue Oct 15, 2024 · 0 comments · May be fixed by #112750
Labels
PGO Profile Guided Optimizations

Comments

@mikolaj-pirog
Copy link

mikolaj-pirog commented Oct 15, 2024

Issuing clang -fprofile-sample-use file.cc has no effect: nothing is printed, binary isn't built with profiling info; the option seems to be ignored. When file is specified with fprofile-sample-use=profile.prof it works as expected. This is surprising, since similar option fprofile-use behaves differently -- when no file is specified, it looks for default.profdata in the current directory and prints error message when it doesn't find any. The fprofile-sample-use should behave as fprofile-use in this case

@github-actions github-actions bot added the clang Clang issues not falling into any other category label Oct 15, 2024
@EugeneZelenko EugeneZelenko added PGO Profile Guided Optimizations and removed clang Clang issues not falling into any other category labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PGO Profile Guided Optimizations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants