diff options
author | Erik Desjardins <erikdesjardinspublic@gmail.com> | 2023-01-29 16:31:00 -0500 |
---|---|---|
committer | Erik Desjardins <erikdesjardinspublic@gmail.com> | 2023-02-07 22:55:41 -0500 |
commit | d768b97424f9e1a0aae45440a18b99f21c4027ce (patch) | |
tree | b1121622f62cd8b3dd85df5557d39f9c4d02bc59 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | 96aaebd12e734610fe0ef61329f99fdac253ef9f (diff) | |
download | llvm-d768b97424f9e1a0aae45440a18b99f21c4027ce.zip llvm-d768b97424f9e1a0aae45440a18b99f21c4027ce.tar.gz llvm-d768b97424f9e1a0aae45440a18b99f21c4027ce.tar.bz2 |
[Support] change StringMap hash function from djbHash to xxHash
Depends on https://reviews.llvm.org/D142861.
Alternative to https://reviews.llvm.org/D137601.
xxHash is much faster than djbHash. This makes a simple Rust test case with a large constant string 10% faster to compile.
Previous attempts at changing this hash function (e.g. https://reviews.llvm.org/D97396) had to be reverted due to breaking tests that depended on iteration order.
No additional tests fail with this patch compared to `main` when running `check-all` with `-DLLVM_ENABLE_PROJECTS="all"` (on a Linux host), so I hope I found everything that needs to be changed.
Differential Revision: https://reviews.llvm.org/D142862
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions