]> granicus.if.org Git - clang/commitdiff
[X86] Remove PCOMMIT feature support since Intel has deprecated this instruction...
authorCraig Topper <craig.topper@gmail.com>
Wed, 8 Feb 2017 05:44:28 +0000 (05:44 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 8 Feb 2017 05:44:28 +0000 (05:44 +0000)
Intel's documentation for the deprecation https://software.intel.com/en-us/blogs/2016/09/12/deprecate-pcommit-instruction

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294403 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 3da1b0f4a242c064ca44c21a450b398ef58fbd6b..09224f5810bd8243f7c0f27eabceaaa6a1c4118c 100644 (file)
@@ -2491,7 +2491,6 @@ class X86TargetInfo : public TargetInfo {
   bool HasMWAITX = false;
   bool HasPKU = false;
   bool HasCLFLUSHOPT = false;
-  bool HasPCOMMIT = false;
   bool HasCLWB = false;
   bool HasUMIP = false;
   bool HasMOVBE = false;
@@ -3076,7 +3075,6 @@ bool X86TargetInfo::initFeatureMap(
     setFeatureEnabledImpl(Features, "avx512bw", true);
     setFeatureEnabledImpl(Features, "avx512vl", true);
     setFeatureEnabledImpl(Features, "pku", true);
-    setFeatureEnabledImpl(Features, "pcommit", true);
     setFeatureEnabledImpl(Features, "clwb", true);
     // FALLTHROUGH
   case CK_SkylakeClient:
@@ -3560,8 +3558,6 @@ bool X86TargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
       HasPKU = true;
     } else if (Feature == "+clflushopt") {
       HasCLFLUSHOPT = true;
-    } else if (Feature == "+pcommit") {
-      HasPCOMMIT = true;
     } else if (Feature == "+clwb") {
       HasCLWB = true;
     } else if (Feature == "+umip") {
@@ -3984,7 +3980,6 @@ bool X86TargetInfo::hasFeature(StringRef Feature) const {
       .Case("movbe", HasMOVBE)
       .Case("mpx", HasMPX)
       .Case("pclmul", HasPCLMUL)
-      .Case("pcommit", HasPCOMMIT)
       .Case("pku", HasPKU)
       .Case("popcnt", HasPOPCNT)
       .Case("prefetchwt1", HasPREFETCHWT1)