diff options
author | Amir Ayupov <aaupov@fb.com> | 2024-05-24 14:00:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-24 14:00:03 -0700 |
commit | 720cade2b68b5c360a5035a98d7ff643191fa3e0 (patch) | |
tree | ccb350efd0defe8a96b06b4e7a2ecd4298fa97c0 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 57be0d2c86e6da73bbd34850a348a87e0a03afbb (diff) | |
download | llvm-720cade2b68b5c360a5035a98d7ff643191fa3e0.zip llvm-720cade2b68b5c360a5035a98d7ff643191fa3e0.tar.gz llvm-720cade2b68b5c360a5035a98d7ff643191fa3e0.tar.bz2 |
[BOLT][NFC] Avoid computing BF hash twice in YAML reader (#75096)
We compute BF hashes in `YAMLProfileReader::readProfile` when first
matching profile functions with binary functions, and second time in
`YAMLProfileReader::parseFunctionProfile` during the profile assignment
(we need to do that to account for LTO private functions with
mismatching suffix).
Avoid recomputing the hash if it's been set.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions