[llvm] [X86] Use generic CPU tuning when tune-cpu is empty (PR #83631)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 3 16:53:14 PST 2024


================
@@ -252,7 +252,7 @@ void X86Subtarget::initSubtargetFeatures(StringRef CPU, StringRef TuneCPU,
     CPU = "generic";
 
   if (TuneCPU.empty())
-    TuneCPU = "i586"; // FIXME: "generic" is more modern than llc tests expect.
+    TuneCPU = Is64Bit ? "x86-64" : "i586";
----------------
phoebewang wrote:

64-bit should use "generic" tuning.

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


More information about the llvm-commits mailing list