[all-commits] [llvm/llvm-project] c3c24b: [AArch64] Split zero cycle zeoring per register cl...

Tomer Shafir via All-commits all-commits at lists.llvm.org
Thu Aug 28 05:57:28 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c3c24be13f7928460ca1e2fe613a1146c868854e
      https://github.com/llvm/llvm-project/commit/c3c24be13f7928460ca1e2fe613a1146c868854e
  Author: Tomer Shafir <tomer.shafir8 at gmail.com>
  Date:   2025-08-28 (Thu, 28 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
    M llvm/lib/Target/AArch64/AArch64Features.td
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
    M llvm/lib/Target/AArch64/AArch64Processors.td
    M llvm/test/CodeGen/AArch64/arm64-copy-phys-zero-reg.mir
    A llvm/test/CodeGen/AArch64/arm64-zero-cycle-zeroing-fpr.ll
    A llvm/test/CodeGen/AArch64/arm64-zero-cycle-zeroing-gpr.ll
    R llvm/test/CodeGen/AArch64/arm64-zero-cycle-zeroing.ll
    M llvm/test/CodeGen/AArch64/f16-imm.ll

  Log Message:
  -----------
  [AArch64] Split zero cycle zeoring per register class (#154561)

This change improves LLVM's model accuracy by splitting AArch64
subtarget features of zero cycle zeroing per register class. This aligns
with how uarch is designed (each register bank has unique capabilities).
Similarly to how we improved ZCM modeling.

It splits `HasZeroCycleZeroingGP` to `HasZeroCycleZeroingGPR32` and
`HasZeroCycleZeroingGPR64`, removes opaque `FeatureZCZeroing`, and
infers `FeatureNoZCZeroingFP` to be `FeatureNoZCZeroingFPR64` based on
the single usage in `AArch64AsmPrinter.cpp`.

It also splits `arm64-zero-cycle-zeroing.ll` into 2 tests one `-gpr` and
one `-fpr`, similarly to ZCM, to make the tests more focused and
managable in correspondance with the new modeling.

The test cases are updated as well, exlpoiting the fact that this is a
refactor patch:

- remove redundant functions that just mix isolated ones (t1-4)
- specialize check prefixes
- replace `apple-a10` with `apple-m1`
- add a `-mtriple=arm64-apple-macosx -mcpu=generic` test case for GPR
- isolate `mtriple=arm64-apple-ios -mcpu=cyclone` FP workaround test
case and move `-fullfp16` to another non-workaround test case



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