[clang] [llvm] [llvm][AArch64] apple-m4 is armv9.2-a (PR #98267)

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 12 07:53:00 PDT 2024


================
@@ -161,14 +161,10 @@ struct CpuInfo {
   StringRef Name; // Name, as written for -mcpu.
   const ArchInfo &Arch;
   AArch64::ExtensionBitset
-      DefaultExtensions; // Default extensions for this CPU. These will be
-                         // ORd with the architecture defaults.
+      DefaultExtensions; // Default extensions for this CPU.
 
   AArch64::ExtensionBitset getImpliedExtensions() const {
-    AArch64::ExtensionBitset ImpliedExts;
-    ImpliedExts |= DefaultExtensions;
-    ImpliedExts |= Arch.DefaultExts;
-    return ImpliedExts;
+    return DefaultExtensions;
----------------
jroelofs wrote:

I mean that code built with `-march=armv9.2` may use SVE instructions because `FeatureSVE` is in the default list for `v9.0`, but this will crash on an M4 iPad.

https://github.com/llvm/llvm-project/pull/98267


More information about the llvm-commits mailing list