Skip to content

[BOLT] Switch BF::computeHash to xxh3 #65437

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

Closed
wants to merge 1 commit into from
Closed

[BOLT] Switch BF::computeHash to xxh3 #65437

wants to merge 1 commit into from

Conversation

aaupov
Copy link
Contributor

@aaupov aaupov commented Sep 6, 2023

std::hash is C++ STL implementation-specific. Switch to xxh3 as the fast and
STL-independent alternative for basic block hashes which are exposed to users
in YAML profile.

Fixes #65241.

std::hash is C++ STL implementation-specific. Switch to xxh3 as the fast and
STL-independent alternative for basic block hashes which are exposed to users
in YAML profile.

Fixes llvm#65241.
@aaupov aaupov marked this pull request as ready for review September 6, 2023 05:00
@aaupov
Copy link
Contributor Author

aaupov commented Sep 19, 2023

I'm currently blocked by bolt/test/X86/reader-stale-yaml.test.
I can produce hashes to trigger the inference on the same blocks as before but the exec count for SolveCubic is wrong.

Copy link
Contributor

@rafaelauler rafaelauler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending test resolution

@aaupov
Copy link
Contributor Author

aaupov commented Nov 27, 2023

Superseded by #72542

@aaupov aaupov closed this Nov 27, 2023
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.

[Bolt] issue about using std::hash in YamlProfileReader and its test case
2 participants