[PATCH] D32509: Replace HashString algorithm with xxHash64

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 10:04:49 PDT 2017


ruiu added inline comments.


================
Comment at: include/llvm/ADT/StringExtras.h:158-159
+/// avalanching, so we wouldn't gain much if anything.
+static inline unsigned HashString(StringRef Str, unsigned Seed = 0)
+{
+  return xxHash64(Str, Seed);
----------------
nit: in the LLVM coding style you want to put `{` at end of the previous line.


Repository:
  rL LLVM

https://reviews.llvm.org/D32509





More information about the llvm-commits mailing list