[PATCH] D45098: [AArch64] fix PR32384: bump the number of stores per memset/memcpy

Sebastian Pop via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 22 10:33:42 PDT 2018


sebpop updated this revision to Diff 148048.
sebpop retitled this revision from "[AArch64] fix PR32384: bump the number of stores per memset/memcpy/memmov" to "[AArch64] fix PR32384: bump the number of stores per memset/memcpy".
sebpop edited the summary of this revision.
sebpop added a comment.

Following Eli's recommendation the patch does not modify memmov.
I will post the updated numbers on top of the improved code generation
for memcpy: https://reviews.llvm.org/rL332482


https://reviews.llvm.org/D45098

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp


Index: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
===================================================================
--- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -579,10 +579,11 @@
 
   setTargetDAGCombine(ISD::GlobalAddress);
 
-  MaxStoresPerMemset = MaxStoresPerMemsetOptSize = 8;
+  MaxStoresPerMemset = 32;
+  MaxStoresPerMemsetOptSize = 8;
   MaxGluedStoresPerMemcpy = 4;
-
-  MaxStoresPerMemcpy = MaxStoresPerMemcpyOptSize = 4;
+  MaxStoresPerMemcpy = 16;
+  MaxStoresPerMemcpyOptSize = 4;
   MaxStoresPerMemmove = MaxStoresPerMemmoveOptSize = 4;
 
   setStackPointerRegisterToSaveRestore(AArch64::SP);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45098.148048.patch
Type: text/x-patch
Size: 678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180522/9f20ec93/attachment.bin>


More information about the llvm-commits mailing list