[all-commits] [llvm/llvm-project] 47f570: [Serialization] Use specialized decl hash function...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Tue Jun 18 01:37:04 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47f5707db796419a5872592422f0f1beb17f0731
      https://github.com/llvm/llvm-project/commit/47f5707db796419a5872592422f0f1beb17f0731
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-06-18 (Tue, 18 Jun 2024)

  Changed paths:
    M clang/include/clang/AST/DeclID.h

  Log Message:
  -----------
  [Serialization] Use specialized decl hash function for GlobalDeclID (#95730)

See the comment:
https://github.com/llvm/llvm-project/pull/92083#issuecomment-2168121729

After the patch, https://github.com/llvm/llvm-project/pull/92083, the
lower 32 bits of DeclID can be the same commonly. This may produce many
collisions. It will be best to change the default hash implementation
for uint64_t. But sent this one as a quick workaround.

Feel free to update this if you prefer other hash functions.



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