[PATCH] D43380: [X86] Disable CLWB in Cannon Lake

Gabor Buella via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 03:29:35 PST 2018


GBuella created this revision.
GBuella added reviewers: craig.topper, zvi, echristo.
Herald added a subscriber: llvm-commits.

Cannon Lake does not support CLWB, therefore it
does not include all features listed under SKX anymore.

Instead, enumerate all SKX features with the exception of CLWB.


Repository:
  rL LLVM

https://reviews.llvm.org/D43380

Files:
  lib/Target/X86/X86.td


Index: lib/Target/X86/X86.td
===================================================================
--- lib/Target/X86/X86.td
+++ lib/Target/X86/X86.td
@@ -781,7 +781,13 @@
 def : SkylakeServerProc<"skylake-avx512">;
 def : SkylakeServerProc<"skx">; // Legacy alias.
 
-def CNLFeatures : ProcessorFeatures<SKXFeatures.Value, [
+def CNLFeatures : ProcessorFeatures<SKLFeatures.Value, [
+  FeatureAVX512,
+  FeatureCDI,
+  FeatureDQI,
+  FeatureBWI,
+  FeatureVLX,
+  FeaturePKU,
   FeatureVBMI,
   FeatureIFMA,
   FeatureSHA


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43380.134591.patch
Type: text/x-patch
Size: 521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180216/3eb4c622/attachment.bin>


More information about the llvm-commits mailing list