[llvm] [LTO] Set default Darwin CPU to apple-a7 for AArch64 (PR #81540)

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 12 14:23:29 PST 2024


================
@@ -546,8 +546,11 @@ static void initTMBuilder(TargetMachineBuilder &TMBuilder,
       TMBuilder.MCpu = "core2";
     else if (TheTriple.getArch() == llvm::Triple::x86)
       TMBuilder.MCpu = "yonah";
-    else if (TheTriple.getArch() == llvm::Triple::aarch64 ||
-             TheTriple.getArch() == llvm::Triple::aarch64_32)
+    else if (TheTriple.isArm64e())
+      TMBuilder.MCpu = "apple-a12";
----------------
jroelofs wrote:

@AtariDreams please stop resolving this

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


More information about the llvm-commits mailing list