[PATCH] D155675: [DWARFLinkerParallel] Switch to xxh3_64bits

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 09:57:08 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG0ea11835d80f: [DWARFLinkerParallel] Switch to xxh3_64bits (authored by MaskRay).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155675/new/

https://reviews.llvm.org/D155675

Files:
  llvm/include/llvm/ADT/ConcurrentHashtable.h
  llvm/include/llvm/DWARFLinkerParallel/StringPool.h


Index: llvm/include/llvm/DWARFLinkerParallel/StringPool.h
===================================================================
--- llvm/include/llvm/DWARFLinkerParallel/StringPool.h
+++ llvm/include/llvm/DWARFLinkerParallel/StringPool.h
@@ -27,7 +27,7 @@
 public:
   /// \returns Hash value for the specified \p Key.
   static inline uint64_t getHashValue(const StringRef &Key) {
-    return xxHash64(Key);
+    return xxh3_64bits(Key);
   }
 
   /// \returns true if both \p LHS and \p RHS are equal.
Index: llvm/include/llvm/ADT/ConcurrentHashtable.h
===================================================================
--- llvm/include/llvm/ADT/ConcurrentHashtable.h
+++ llvm/include/llvm/ADT/ConcurrentHashtable.h
@@ -77,7 +77,7 @@
 public:
   /// \returns Hash value for the specified \p Key.
   static inline uint64_t getHashValue(const KeyTy &Key) {
-    return xxHash64(Key);
+    return xxh3_64bits(Key);
   }
 
   /// \returns true if both \p LHS and \p RHS are equal.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155675.542088.patch
Type: text/x-patch
Size: 977 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230719/394e653d/attachment.bin>


More information about the llvm-commits mailing list