|
|
c5d972 |
From e69d9981f858a38e19304e6ff5ebdf89f2cb0ba0 Mon Sep 17 00:00:00 2001
|
|
|
c5d972 |
From: Wilco Dijkstra <wdijkstr@arm.com>
|
|
|
c5d972 |
Date: Tue, 10 Aug 2021 13:44:27 +0100
|
|
|
c5d972 |
Subject: [PATCH] [4/5] AArch64: Improve A64FX memset by removing unroll32
|
|
|
c5d972 |
|
|
|
c5d972 |
Remove unroll32 code since it doesn't improve performance.
|
|
|
c5d972 |
|
|
|
c5d972 |
Reviewed-by: Naohiro Tamura <naohirot@fujitsu.com>
|
|
|
c5d972 |
---
|
|
|
c5d972 |
sysdeps/aarch64/multiarch/memset_a64fx.S | 18 +-----------------
|
|
|
c5d972 |
1 file changed, 1 insertion(+), 17 deletions(-)
|
|
|
c5d972 |
|
|
|
c5d972 |
diff --git a/sysdeps/aarch64/multiarch/memset_a64fx.S b/sysdeps/aarch64/multiarch/memset_a64fx.S
|
|
|
c5d972 |
index 337c86be6f..ef0315658a 100644
|
|
|
c5d972 |
--- a/sysdeps/aarch64/multiarch/memset_a64fx.S
|
|
|
c5d972 |
+++ b/sysdeps/aarch64/multiarch/memset_a64fx.S
|
|
|
c5d972 |
@@ -102,22 +102,6 @@ L(vl_agnostic): // VL Agnostic
|
|
|
c5d972 |
ccmp vector_length, tmp1, 0, cs
|
|
|
c5d972 |
b.eq L(L1_prefetch)
|
|
|
c5d972 |
|
|
|
c5d972 |
-L(unroll32):
|
|
|
c5d972 |
- lsl tmp1, vector_length, 3 // vector_length * 8
|
|
|
c5d972 |
- lsl tmp2, vector_length, 5 // vector_length * 32
|
|
|
c5d972 |
- .p2align 3
|
|
|
c5d972 |
-1: cmp rest, tmp2
|
|
|
c5d972 |
- b.cc L(unroll8)
|
|
|
c5d972 |
- st1b_unroll
|
|
|
c5d972 |
- add dst, dst, tmp1
|
|
|
c5d972 |
- st1b_unroll
|
|
|
c5d972 |
- add dst, dst, tmp1
|
|
|
c5d972 |
- st1b_unroll
|
|
|
c5d972 |
- add dst, dst, tmp1
|
|
|
c5d972 |
- st1b_unroll
|
|
|
c5d972 |
- add dst, dst, tmp1
|
|
|
c5d972 |
- sub rest, rest, tmp2
|
|
|
c5d972 |
- b 1b
|
|
|
c5d972 |
|
|
|
c5d972 |
L(unroll8):
|
|
|
c5d972 |
lsl tmp1, vector_length, 3
|
|
|
c5d972 |
@@ -155,7 +139,7 @@ L(L1_prefetch): // if rest >= L1_SIZE
|
|
|
c5d972 |
sub rest, rest, CACHE_LINE_SIZE * 2
|
|
|
c5d972 |
cmp rest, L1_SIZE
|
|
|
c5d972 |
b.ge 1b
|
|
|
c5d972 |
- cbnz rest, L(unroll32)
|
|
|
c5d972 |
+ cbnz rest, L(unroll8)
|
|
|
c5d972 |
ret
|
|
|
c5d972 |
|
|
|
c5d972 |
// count >= L2_SIZE
|
|
|
c5d972 |
--
|
|
|
c5d972 |
2.31.1
|
|
|
c5d972 |
|