Use the default seed value for djb hash for StringMap
authorserge-sans-paille <sguelton@redhat.com>
Wed, 24 Feb 2021 15:15:24 +0000 (16:15 +0100)
committerserge-sans-paille <sguelton@redhat.com>
Mon, 1 Mar 2021 12:21:27 +0000 (13:21 +0100)
commitd84440ec919019ac446241db72cfd905c6ac9dfa
tree462ec3bdc26d6b17a9021c8bbf0a9430cbe7017b
parent3fea9226eecd2069bea93c4fe5955b0b5ff316f7
Use the default seed value for djb hash for StringMap

See original comment in 560ce2c70fb1fe8e4b9b5e39c54e494a50373ba8
Baiscally the default seed value results in less collision, but changes the
iteration order, which matters for a few test cases.

Differential Revision: https://reviews.llvm.org/D97396
llvm/lib/Support/StringMap.cpp
llvm/test/DebugInfo/Generic/accel-table-hash-collisions.ll
llvm/test/DebugInfo/Generic/debug-names-hash-collisions.ll
llvm/test/DebugInfo/X86/debug-pubtables-dwarf64.ll
llvm/test/DebugInfo/X86/gnu-public-names.ll
llvm/test/tools/llvm-dwarfdump/X86/section_sizes_elf.test
llvm/test/tools/llvm-dwarfdump/X86/section_sizes_macho.test
llvm/test/tools/llvm-dwarfdump/X86/statistics.ll