[all-commits] [llvm/llvm-project] c058eb: [AArch64] Fix crash when neither Neon nor SVE are ...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Thu Aug 17 08:08:00 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c058eb998aa6fa89d412984d6cbf9e3f826249f3
  Author: Fraser Cormack <frasercrmck at gmail.com>
  Date:   2023-08-17 (Thu, 17 Aug 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64Subtarget.h
    A llvm/test/Analysis/CostModel/AArch64/no-sve-no-neon.ll
    A llvm/test/CodeGen/AArch64/no-sve-no-neon.ll

  Log Message:
  [AArch64] Fix crash when neither Neon nor SVE are enabled

The subtarget was unconditionally reporting that SVE was to be used to
lower vectors when Neon was unavailable, even when SVE itself was
unavailable. This decision leads other parts of the compiler to crash,
e.g., when querying SVE vector sizes.

Reviewed By: sdesmalen

Differential Revision: https://reviews.llvm.org/D158179

More information about the All-commits mailing list