[PATCH] D107370: [X86] Split Subtarget ISA / Security / Tuning Feature Flags Definitions. NFC

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 3 21:05:04 PDT 2021


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/X86.td:36-37
 
 def FeatureNOPL    : SubtargetFeature<"nopl", "HasNOPL", "true",
                                       "Enable NOPL instruction">;
 
----------------
pengfei wrote:
> Should this be moved together with FeatureFast7ByteNOP etc.?
Feature NOPL isn't a tuning feature. It's architectural.


================
Comment at: llvm/lib/Target/X86/X86.td:281-295
+// Ivy Bridge and newer processors have enhanced REP MOVSB and STOSB (aka
+// "string operations"). See "REP String Enhancement" in the Intel Software
+// Development Manual. This feature essentially means that REP MOVSB will copy
+// using the largest available size instead of copying bytes one by one, making
+// it at least as fast as REPMOVS{W,D,Q}.
+def FeatureERMSB
+    : SubtargetFeature<
----------------
pengfei wrote:
> These seem tuning features?
They have CPUID bits and they appear in HSWAdditionalFeatures rather than HSWTuning. and ICLAdditionalFeatures rather than ICLTuning.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107370/new/

https://reviews.llvm.org/D107370



More information about the llvm-commits mailing list