summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2017-03-28 23:03:19 +0000
committerEric Christopher <echristo@gmail.com>2017-03-28 23:03:19 +0000
commitfc6ffede655b55099550b96604add2d1eb7877b0 (patch)
tree653af3f18f68e7e047c93e16dcdf11cd4bd34a1e /clang/lib/Basic/Targets.cpp
parentf8d40181c9b8ef68d975ba04dfd025cb74042e88 (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud