[PATCH] D45098: [AArch64] fix PR32384: bump the number of stores per memset/memcpy
Evandro Menezes via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 24 14:25:05 PDT 2018
evandro updated this revision to Diff 148487.
evandro added a comment.
Update test case to keep it from failing due to this change.
https://reviews.llvm.org/D45098
Files:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/arm64-memset-to-bzero.ll
Index: llvm/test/CodeGen/AArch64/arm64-memset-to-bzero.ll
===================================================================
--- llvm/test/CodeGen/AArch64/arm64-memset-to-bzero.ll
+++ llvm/test/CodeGen/AArch64/arm64-memset-to-bzero.ll
@@ -1,7 +1,7 @@
-; RUN: llc %s -mtriple=arm64-apple-darwin -o - | \
-; RUN: FileCheck --check-prefix=CHECK-DARWIN --check-prefix=CHECK %s
-; RUN: llc %s -mtriple=arm64-linux-gnu -o - | \
-; RUN: FileCheck --check-prefix=CHECK-LINUX --check-prefix=CHECK %s
+; RUN: llc %s -mtriple=arm64-apple-darwin -mattr=+strict-align -o - | \
+; RUN: FileCheck --check-prefixes=CHECK,CHECK-DARWIN %s
+; RUN: llc %s -mtriple=arm64-linux-gnu -mattr=+strict-align -o - | \
+; RUN: FileCheck --check-prefixes=CHECK,CHECK-LINUX %s
; <rdar://problem/14199482> ARM64: Calls to bzero() replaced with calls to memset()
; CHECK-LABEL: fct1:
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.148487.patch
Type: text/x-patch
Size: 1543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180524/2635a078/attachment.bin>
More information about the llvm-commits
mailing list