Skip to content

[Bolt] issue about using std::hash in YamlProfileReader and its test case #65241

Closed
@linsinan1995

Description

@linsinan1995

it seems that bolt tries to match block counts based on hashes generated from std::hash when the data is yaml format. However, std::hash does not guarantee the result will be the same from different setups.

I recently used a llvm-bolt linked against libc++, and it failed on test case X86/reader-stale-yaml.test, since the std::hash results are different from these two libraries...

image

Metadata

Metadata

Assignees

Labels

BOLTgood first issuehttps://github.com/llvm/llvm-project/contributehelp wantedIndicates that a maintainer wants help. Not [good first issue].

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions