aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
diff options
context:
space:
mode:
authorMarc Auberer <marc.auberer@chillibits.com>2024-04-02 10:49:06 +0200
committerGitHub <noreply@github.com>2024-04-02 10:49:06 +0200
commit77e5c0a95c54e0ca34b8e9c56c702490619b73c9 (patch)
treef6172e540a255ffc99d478eba1dac717c22fa37f /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
parent2d14ea68b8c0acdff7c040d581f7fde15d2683d9 (diff)
downloadllvm-77e5c0a95c54e0ca34b8e9c56c702490619b73c9.zip
llvm-77e5c0a95c54e0ca34b8e9c56c702490619b73c9.tar.gz
llvm-77e5c0a95c54e0ca34b8e9c56c702490619b73c9.tar.bz2
[AArch64][GISEL] Reduce likelihood of hash collisions for mappings in RegisterBankInfo (#87033)
Fixes #85209 This patch removes the truncation from `hash_code` aka `size_t` down to `unsigned`, that currently happens on DenseMap accesses in RegisterBankInfo. This reduces the likelihood of hash collisions, as well as the likelihood of hitting EmptyKey or TombstoneKey, the special key values of DenseMap. This is not the ultimate solution to the problem, but we can do it in any case.
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
0 files changed, 0 insertions, 0 deletions