[llvm-bugs] [Bug 50781] New: [X86] __tune_* defines don't follow -mtune
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jun 20 19:21:02 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50781
Bug ID: 50781
Summary: [X86] __tune_* defines don't follow -mtune
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: craig.topper at gmail.com
CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
llvm-dev at redking.me.uk, pengfei.wang at intel.com,
spatel+llvm at rotateright.com
Note this is really a clang bug, but there's no good component for target
specific clang code and this component has the right CC list.
When I implemented -mtune support, I failed to make the preprocessor defines
follow the -mtune setting.
This probably means we need a setTuneCPU function like setCPU in TargetInfo.
Then we need to split defineCPUMacros to remove the tuning define. I think
other targets use defineCPUMacros, but set a bool to not define the tune
defines so removing the code simplies the interface.
I probably won't have a chance to work on this for a while. Pengfei, can you or
someone at Intel handle it?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210621/99b70233/attachment.html>
More information about the llvm-bugs
mailing list