diff options
author | Fangrui Song <i@maskray.me> | 2024-04-09 11:02:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 11:02:39 -0700 |
commit | d3016aa889ac12fd8a047d68fed2ddaca107b990 (patch) | |
tree | 241147671e93c4d0d75e506120284c11f10a0aac /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | |
parent | a454d92c5ac906d391b683661ac3d9a362ab0107 (diff) | |
download | llvm-d3016aa889ac12fd8a047d68fed2ddaca107b990.zip llvm-d3016aa889ac12fd8a047d68fed2ddaca107b990.tar.gz llvm-d3016aa889ac12fd8a047d68fed2ddaca107b990.tar.bz2 |
[DWARF] Refactor .debug_names bucket count computation (#88087)
`getDebugNamesBucketAndHashCount` lures users to provide an array to
compute the bucket count using an O(n log n) sort. This is inefficient
as hash table based uniquifying is faster.
The performance issue matters less for Clang as the number of names is
relatively small. For `ld.lld --debug-names`, I plan to compute the
unique hash count as a side product of parallel entry pool computation,
and I just need a function to suggest a bucket count.
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions