summaryrefslogtreecommitdiff
path: root/simd
diff options
context:
space:
mode:
authorJonathan Wright <jonathan.wright@arm.com>2019-07-05 13:10:57 +0100
committerJonathan Wright <jonathan.wright@arm.com>2019-07-05 18:17:55 +0100
commit76aabbd351eea8a5988a5672526eda0677f2048d (patch)
tree905ace3e3618a143b9dd6c7cb20643a1a0963b43 /simd
parentf63b96a1fd12438e13864c996e8c5001e290e9e1 (diff)
Add extra guard for loop unroll pragma on AArch64
Guard clang loop unroll pragma on builds that optimize for size. 64-bit Android builds optimize for size, thus ignoring loop unroll pragmas. The compiler warning emitted due to the ignored pragma caused the build to fail since -Werror is also used. Change-Id: I387bddecfa31e502751c4886fc99fbe39e761474
Diffstat (limited to 'simd')
-rw-r--r--simd/arm/common/jdsample-neon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/simd/arm/common/jdsample-neon.c b/simd/arm/common/jdsample-neon.c
index b8e7ae2..0371722 100644
--- a/simd/arm/common/jdsample-neon.c
+++ b/simd/arm/common/jdsample-neon.c
@@ -111,7 +111,7 @@ void jsimd_h2v1_fancy_upsample_neon(int max_v_samp_factor,
unsigned outptr_offset = 1;
uint8x16x2_t output_pixels;
-#if defined(__aarch64__) && defined(__clang__)
+#if defined(__aarch64__) && defined(__clang__) && !defined(__OPTIMIZE_SIZE__)
/* Unrolling by four is beneficial on AArch64 as there are 16 additional */
/* 128-bit SIMD registers to accommodate the extra data in flight. */
#pragma clang loop unroll_count(4)