[all-commits] [llvm/llvm-project] 60e4d2: [lld-macho, BalancedPartition] Simplify relocation ...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Thu Jan 16 09:32:04 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 60e4d24963ebc256dd68f2f9d969ca8e52cd9649
https://github.com/llvm/llvm-project/commit/60e4d24963ebc256dd68f2f9d969ca8e52cd9649
Author: Fangrui Song <i at maskray.me>
Date: 2025-01-16 (Thu, 16 Jan 2025)
Changed paths:
M lld/MachO/BPSectionOrderer.h
M lld/include/lld/Common/BPSectionOrdererBase.h
Log Message:
-----------
[lld-macho,BalancedPartition] Simplify relocation hash and avoid xxHash
xxHash, inferior to xxh3, is discouraged. We try not to use xxhash in
lld.
Switch to read32le for content hash and xxh3/stable_hash_combine for
relocation hash. Remove the intermediate std::string for relocation
hash.
Change the tail hashing scheme to consider individual bytes instead.
This helps group 0102 and 0201 together. The benefit is negligible,
though.
Pull Request: https://github.com/llvm/llvm-project/pull/121729
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