[llvm-branch-commits] [llvm] f350760 - Revert "[X86] Use generic CPU tuning when tune-cpu is empty (#83631)"
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun May 26 20:34:23 PDT 2024
Author: Phoebe Wang
Date: 2024-05-27T11:34:21+08:00
New Revision: f350760c1c8f7e7b7c7f858aacc1465a03a1ed83
URL: https://github.com/llvm/llvm-project/commit/f350760c1c8f7e7b7c7f858aacc1465a03a1ed83
DIFF: https://github.com/llvm/llvm-project/commit/f350760c1c8f7e7b7c7f858aacc1465a03a1ed83.diff
LOG: Revert "[X86] Use generic CPU tuning when tune-cpu is empty (#83631)"
This reverts commit bafda89a0944d947fc4b3b5663185e07a397ac30.
Added:
Modified:
llvm/lib/Target/X86/X86Subtarget.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86Subtarget.cpp b/llvm/lib/Target/X86/X86Subtarget.cpp
index bac8d3a29ec06..c2e6ddd7e7fa2 100644
--- a/llvm/lib/Target/X86/X86Subtarget.cpp
+++ b/llvm/lib/Target/X86/X86Subtarget.cpp
@@ -252,7 +252,7 @@ void X86Subtarget::initSubtargetFeatures(StringRef CPU, StringRef TuneCPU,
CPU = "generic";
if (TuneCPU.empty())
- TuneCPU = HasX86_64 ? "generic" : "i586";
+ TuneCPU = "i586"; // FIXME: "generic" is more modern than llc tests expect.
std::string FullFS = X86_MC::ParseX86Triple(TargetTriple);
assert(!FullFS.empty() && "Failed to parse X86 triple");
More information about the llvm-branch-commits
mailing list