[all-commits] [llvm/llvm-project] 05e87a: Reland "[MC][NFC] Make ELFUniquingMap a StringMap ...
aengelke via All-commits
all-commits at lists.llvm.org
Mon Jun 10 23:40:04 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 05e87a583ce2680fc7309491c8bc23fd0e3bd049
https://github.com/llvm/llvm-project/commit/05e87a583ce2680fc7309491c8bc23fd0e3bd049
Author: aengelke <engelke at in.tum.de>
Date: 2024-06-11 (Tue, 11 Jun 2024)
Changed paths:
M llvm/include/llvm/MC/MCContext.h
M llvm/lib/MC/MCContext.cpp
Log Message:
-----------
Reland "[MC][NFC] Make ELFUniquingMap a StringMap (#95006)" (#95030)
This avoids std::map, which is slow, and uses a StringMap. Section name,
group name, linked-to name and unique id are encoded into the key for
fast lookup.
This gives a measurable performance boost for applications that compile
many small object files (e.g., functions in JIT compilers).
---
Now also the second case works properly. That's what happens when you do
that last refactoring without re-running all tests... sorry.
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