[PATCH] D83897: [X86] Add a generic 32-bit CPU with sse2 with modern tuning flags to be used as the default for the 32-bit targets instead of pentium4
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 15 11:39:34 PDT 2020
craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel, echristo, andreadb.
Herald added subscribers: jfb, hiraditya.
Herald added a project: LLVM.
Currently our default 32-bit CPU on Linux and Windows is "pentium4" which comes with pentium4 tuning settings and almost non-existent scheduler.
This patch proposes to add a 32-bit CPU with sse2, but with more modern tuning settings to replace the default pentium4. I've chosen this way so that -march=pentium4 behavior doesn't change. Alternatively we can just change the pentium4 settings and assume no one cares about truly tuning for pentium4 these days.
This would be unnecessary if -mtune were supported, but this is a lot less effort than plumbing mtune.
https://reviews.llvm.org/D83897
Files:
clang/lib/Basic/Targets/X86.cpp
clang/lib/Driver/ToolChains/Arch/X86.cpp
clang/test/Driver/nacl-direct.c
clang/test/Driver/x86_features.c
clang/test/Misc/target-invalid-cpu-note.c
llvm/include/llvm/Support/X86TargetParser.h
llvm/lib/Support/X86TargetParser.cpp
llvm/lib/Target/X86/X86.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83897.278260.patch
Type: text/x-patch
Size: 5115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200715/1e05455f/attachment.bin>
More information about the cfe-commits
mailing list