[all-commits] [llvm/llvm-project] 874dca: [Serialization] Use stable hash functions

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Jun 20 23:53:29 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 874dcaea09171100de02fa6d5c0af0669aea900f
      https://github.com/llvm/llvm-project/commit/874dcaea09171100de02fa6d5c0af0669aea900f
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-20 (Thu, 20 Jun 2024)

  Changed paths:
    M clang/lib/AST/ODRHash.cpp
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    M llvm/include/llvm/ADT/FoldingSet.h

  Log Message:
  -----------
  [Serialization] Use stable hash functions

clangSerialization currently uses hash_combine/hash_value from
Hashing.h, which are not guaranteed to be deterministic.
Replace these uses with xxh3_64bits.

Pull Request: https://github.com/llvm/llvm-project/pull/96136



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