Skip to content

Commit cbd8031

Browse files
authored
Revert "[X86] Use generic CPU tuning when tune-cpu is empty" (#93436)
Reverts #83631 Using `HasX86_64` is incorrect.
1 parent eeb2f72 commit cbd8031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86Subtarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void X86Subtarget::initSubtargetFeatures(StringRef CPU, StringRef TuneCPU,
252252
CPU = "generic";
253253

254254
if (TuneCPU.empty())
255-
TuneCPU = HasX86_64 ? "generic" : "i586";
255+
TuneCPU = "i586"; // FIXME: "generic" is more modern than llc tests expect.
256256

257257
std::string FullFS = X86_MC::ParseX86Triple(TargetTriple);
258258
assert(!FullFS.empty() && "Failed to parse X86 triple");

0 commit comments

Comments
 (0)