diff options
author | Eric Christopher <echristo@gmail.com> | 2017-03-28 23:03:19 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2017-03-28 23:03:19 +0000 |
commit | fc6ffede655b55099550b96604add2d1eb7877b0 (patch) | |
tree | 653af3f18f68e7e047c93e16dcdf11cd4bd34a1e /clang/lib/Basic/Targets.cpp | |
parent | f8d40181c9b8ef68d975ba04dfd025cb74042e88 (diff) | |
download | bcm5719-llvm-fc6ffede655b55099550b96604add2d1eb7877b0.tar.gz bcm5719-llvm-fc6ffede655b55099550b96604add2d1eb7877b0.zip |
Default enable the rtm feature only on skylake and later for now because Intel disabled the feature on some haswell and broadwell processors:
http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/core-m-processor-family-spec-update.pdf
the -mrtm option will still work normally.
llvm-svn: 298956
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 23ef9f8dd6b..d80a8d5efee 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -3194,6 +3194,7 @@ bool X86TargetInfo::initFeatureMap( setFeatureEnabledImpl(Features, "mpx", true); setFeatureEnabledImpl(Features, "sgx", true); setFeatureEnabledImpl(Features, "clflushopt", true); + setFeatureEnabledImpl(Features, "rtm", true); LLVM_FALLTHROUGH; case CK_Broadwell: setFeatureEnabledImpl(Features, "rdseed", true); @@ -3204,7 +3205,6 @@ bool X86TargetInfo::initFeatureMap( setFeatureEnabledImpl(Features, "lzcnt", true); setFeatureEnabledImpl(Features, "bmi", true); setFeatureEnabledImpl(Features, "bmi2", true); - setFeatureEnabledImpl(Features, "rtm", true); setFeatureEnabledImpl(Features, "fma", true); setFeatureEnabledImpl(Features, "movbe", true); LLVM_FALLTHROUGH; |