[X86] Remove 'rtm' feature from KNL.
authorCraig Topper <craig.topper@intel.com>
Tue, 23 Oct 2018 00:15:37 +0000 (00:15 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 23 Oct 2018 00:15:37 +0000 (00:15 +0000)
I'm unsure if KNL has this feature, but the backend never thought it did, only clang did. The predefined-arch-macros test lost the check for __RTM__ on KNL when it was removed Skylake CPUs in r344117.

I think we want to drop it from KNL for consistency with Skylake anyway regardless of how we got here.

llvm-svn: 344978

clang/lib/Basic/Targets/X86.cpp

index 1223e86..467eb55 100644 (file)
@@ -280,7 +280,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, "rdrnd", true);
     setFeatureEnabledImpl(Features, "f16c", true);