[all-commits] [llvm/llvm-project] f9ad24: [StableHash] Implement stable global name for the ...

Kyungwoo Lee via All-commits all-commits at lists.llvm.org
Tue Aug 27 15:09:28 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f9ad24946026c45e22c445f8ebc79b8b651e1dad
      https://github.com/llvm/llvm-project/commit/f9ad24946026c45e22c445f8ebc79b8b651e1dad
  Author: Kyungwoo Lee <kyulee at meta.com>
  Date:   2024-08-27 (Tue, 27 Aug 2024)

  Changed paths:
    M llvm/include/llvm/ADT/StableHashing.h
    M llvm/lib/CodeGen/MachineStableHash.cpp
    M llvm/unittests/MIR/CMakeLists.txt
    A llvm/unittests/MIR/MachineStableHashTest.cpp

  Log Message:
  -----------
  [StableHash] Implement stable global name for the hash computation (#106156)

LLVM often extends global names by adding suffixes to distinguish unique
identities. However, these suffixes are not always stable across
different runs and build environments. To address this issue, I
implemented `get_stable_name` to ignore such suffixes and obtain the
original name. This approach is not new, as PGO or Bolt already handle
this issue similarly. Using the stable name obtained from
`get_stable_name`, I implemented `stable_hash_name` while utilizing the
same underlying `xxh3_64bit` algorithm as before.



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