Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[PGO] Exposing PGO's Counter Reset and File Dumping APIs #76471
[PGO] Exposing PGO's Counter Reset and File Dumping APIs #76471
Changes from 4 commits
6c9381e
a6c3b46
18ec4ac
b741a55
13a4bb3
cce25f0
ec47868
29086fc
8e2bf69
6f9a443
ae9d57d
6a5d785
7e48831
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need a
REQUIRES: ppc
for this test otherwise it will fail when this line is executed on non-PPC build bots?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After reading your comment, I was about to say the binary is compiled with
ppc64le
and requireshost-byteorder-little-endian
but realized the--target=ppc64le-unknown-linux-gnu
is only used with-emit-llvm
, and theRUN
lines that build executables doesn't specify a target.Nevertheless, I wonder test coverage for
%clang_pgogen
should be added here as well.Relatedly, I do get compilation errors on ppc big-endian systems for
clang_pgogen
in another compiler-rt test (commit and buildbot link)From the error message, I think lack of ABI implementation should manifest whether it's
clang_pgogen
orclang_profgen
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, can we drop the
--target=ppc64le-unknown-linux-gnu
flag? It shouldn't make a difference to what we want to test here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good catch! Thanks! I had missed that. The
%clang_pgogen
tests are added.Sounds good! The test is revised to avoid any target specific flags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm thanks for pointing this out! I don't have access to a BE machine at the moment to reproduce but I will go find one and take a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe just add
REQUIRES: host-byteorder-little-endian
since this test passes on little-endian systems.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah thanks for the proposal!
We still want to keep this test working for both BE and LE because we want this test to run on AIX as well. In its current shape, the test passes on AIX. If it is fine, given this comment, I can be a bit speculative and let the buildbot alert me if this test is failing on Linux ppc BE.