[all-commits] [llvm/llvm-project] 246194: [AArch64] Cache repeated subtarget queries (NFC) (...

Cullen Rhodes via All-commits all-commits at lists.llvm.org
Fri Sep 11 03:34:40 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 246194f32b17db4e43cc115f035619b0930e3787
      https://github.com/llvm/llvm-project/commit/246194f32b17db4e43cc115f035619b0930e3787
  Author: Cullen Rhodes <cullen.rhodes at arm.com>
  Date:   2026-09-11 (Fri, 11 Sep 2026)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
    M llvm/lib/Target/AArch64/AArch64TargetMachine.h

  Log Message:
  -----------
  [AArch64] Cache repeated subtarget queries (NFC) (#222637)

The existing SubtargetMap caches subtargets using a key built from a subset of
relevant function attributes. Add a single-entry cache keyed by the full
function attribute set to avoid rebuilding that key for repeated queries. This
covers both repeated queries for the same function and queries for different
functions with identical attributes.

Improves CTMark geomean -0.10% on aarch64-O3 and -0.17 on aarch64-O0-g.

https://llvm-compile-time-tracker.com/compare.php?from=87d9c3c24ff5941ac08799850a6549b561c98a81&to=544bb3d9ac28bc1a28248f6b03bcd95fa85b20e0&stat=instructions:u

Assisted-by: codex



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