diff options
author | Marc Auberer <marc.auberer@chillibits.com> | 2024-04-02 10:49:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-02 10:49:06 +0200 |
commit | 77e5c0a95c54e0ca34b8e9c56c702490619b73c9 (patch) | |
tree | f6172e540a255ffc99d478eba1dac717c22fa37f /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | |
parent | 2d14ea68b8c0acdff7c040d581f7fde15d2683d9 (diff) | |
download | llvm-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