[llvm] [AArch64] Make compiling arm_neon.h faster (PR #226378)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 25 00:12:53 PDT 2026
================
@@ -165,10 +166,15 @@ std::optional<AArch64::ExtensionInfo>
AArch64::parseArchExtension(StringRef ArchExt) {
if (ArchExt.empty())
return {};
- for (const auto &A : Extensions) {
- if (ArchExt == StrTab[A.UserVisibleName] || ArchExt == StrTab[A.Alias])
- return A;
- }
+ static const StringMap<const ExtensionInfo *> NameToExtension = [] {
+ StringMap<const ExtensionInfo *> Map;
----------------
aengelke wrote:
DenseMap<StringRef, X>, strings don't need to be copied/owned.
https://github.com/llvm/llvm-project/pull/226378
More information about the llvm-commits
mailing list