[all-commits] [llvm/llvm-project] 720cad: [BOLT][NFC] Avoid computing BF hash twice in YAML ...

Amir Ayupov via All-commits all-commits at lists.llvm.org
Fri May 24 14:00:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 720cade2b68b5c360a5035a98d7ff643191fa3e0
      https://github.com/llvm/llvm-project/commit/720cade2b68b5c360a5035a98d7ff643191fa3e0
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2024-05-24 (Fri, 24 May 2024)

  Changed paths:
    M bolt/lib/Core/BinaryFunction.cpp
    M bolt/lib/Profile/YAMLProfileReader.cpp

  Log Message:
  -----------
  [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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list