[PATCH] D38046: [Atomic][X8664] set max atomic inline/promote width according to the target
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 20 14:16:08 PDT 2017
efriedma added a comment.
Needs testcase.
================
Comment at: lib/Basic/Targets/X86.h:898
+ MaxAtomicPromoteWidth = 64;
+ MaxAtomicInlineWidth = 64;
+ }
----------------
I don't think we need to mess with MaxAtomicPromoteWidth?
Probably more intuitive to check "if (hasFeature" rather than "if (!hasFeature".
Adding a dedicated hook for this seems a bit overkill, but I don't have a better suggestion.
Repository:
rL LLVM
https://reviews.llvm.org/D38046
More information about the cfe-commits
mailing list