[all-commits] [llvm/llvm-project] d66045: [AArch64][clang] Use DenseSet for target feature l...

Benjamin Maxwell via All-commits all-commits at lists.llvm.org
Wed Feb 11 02:08:20 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d6604556ef2dfbbe16a8a5a4374e45042a70f34a
      https://github.com/llvm/llvm-project/commit/d6604556ef2dfbbe16a8a5a4374e45042a70f34a
  Author: Benjamin Maxwell <benjamin.maxwell at arm.com>
  Date:   2026-02-11 (Wed, 11 Feb 2026)

  Changed paths:
    M clang/lib/Basic/Targets/AArch64.cpp
    M clang/lib/Basic/Targets/AArch64.h

  Log Message:
  -----------
  [AArch64][clang] Use DenseSet for target feature lookup (NFC) (#180734)

This resolves a recent AArch64 compile-time regression triggered by
#176755, which inadvertently grew the feature lookup `StringSwitch` too
large. This patch replaces the `StringSwitch` with a `DenseSet` of
target features. This is built with a new `FeatureLookupBuilder` helper,
which allows reusing all the existing cases (to avoid unintentionally
changing any of them).

Compiler-time impact:
https://llvm-compile-time-tracker.com/compare.php?from=c9753859d19b07315c5a9a493efaa4df18db84ab&to=cb0684b602d5c741ca99b22bb3bc5f902b7a5a7e&stat=instructions:u



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