[PATCH] D94436: [X86] Add the FSRM feature (Fast Short Rep Mov) to Zen3.

Hiroshi Yamauchi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 11:06:37 PST 2021


yamauchi created this revision.
yamauchi added a reviewer: davidxl.
Herald added subscribers: pengfei, hiraditya.
yamauchi requested review of this revision.
Herald added a project: LLVM.

Note -x86-use-fsrm-for-memcpy is still disabled by default and there's no
default behavior change.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94436

Files:
  llvm/lib/Target/X86/X86.td
  llvm/test/CodeGen/X86/memcpy-inline-fsrm.ll


Index: llvm/test/CodeGen/X86/memcpy-inline-fsrm.ll
===================================================================
--- llvm/test/CodeGen/X86/memcpy-inline-fsrm.ll
+++ llvm/test/CodeGen/X86/memcpy-inline-fsrm.ll
@@ -4,6 +4,7 @@
 ; RUN: llc -mtriple=x86_64-linux-gnu -x86-use-fsrm-for-memcpy -mcpu=haswell < %s | FileCheck %s --check-prefix=NOFSRM
 ; RUN: llc -mtriple=x86_64-linux-gnu -x86-use-fsrm-for-memcpy -mcpu=icelake-client < %s | FileCheck %s --check-prefix=FSRM
 ; RUN: llc -mtriple=x86_64-linux-gnu -x86-use-fsrm-for-memcpy -mcpu=icelake-server < %s | FileCheck %s --check-prefix=FSRM
+; RUN: llc -mtriple=x86_64-linux-gnu -x86-use-fsrm-for-memcpy -mcpu=znver3 < %s | FileCheck %s --check-prefix=FSRM
 
 declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i1) nounwind
 
Index: llvm/lib/Target/X86/X86.td
===================================================================
--- llvm/lib/Target/X86/X86.td
+++ llvm/lib/Target/X86/X86.td
@@ -1071,7 +1071,8 @@
   list<SubtargetFeature> ZN2Tuning = ZNTuning;
   list<SubtargetFeature> ZN2Features =
     !listconcat(ZNFeatures, ZN2AdditionalFeatures);
-  list<SubtargetFeature> ZN3AdditionalFeatures = [FeatureINVPCID,
+  list<SubtargetFeature> ZN3AdditionalFeatures = [FeatureFSRM,
+                                                  FeatureINVPCID,
                                                   FeaturePKU,
                                                   FeatureVAES,
                                                   FeatureVPCLMULQDQ];


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94436.315867.patch
Type: text/x-patch
Size: 1530 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210111/373fc6e2/attachment.bin>


More information about the llvm-commits mailing list