ref: 4e26b2ea098776afe2daaefeb8d12d9e45bf3bd8
parent: 7538e4cc88591fe5b161d93d4c74a20b5bc55ff2
author: Luca Barbato <lu_zero@gentoo.org>
date: Fri Jun 15 18:49:10 EDT 2018
[VSX] Drop the clang-4 workaround for vec_xxpermdi clang-6 seems to support it out of box. E.g. VP9SubtractBlockTest.DISABLED_Speed with the workaround: [ BENCH ] 4x4 286.5 ms ( ±0.2 ms ) Without: [ BENCH ] 4x4 215.2 ms ( ±0.9 ms ) Change-Id: I28b3a2cc93c0d72f52f5a48cc06d8ed4ef26913f
--- a/vpx_dsp/ppc/types_vsx.h
+++ b/vpx_dsp/ppc/types_vsx.h
@@ -23,7 +23,7 @@
typedef vector bool short bool16x8_t;
typedef vector bool int bool32x4_t;
-#ifdef __clang__
+#if defined(__clang__) && __clang_major__ < 6
static const uint8x16_t xxpermdi0_perm = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05,
0x06, 0x07, 0x10, 0x11, 0x12, 0x13,
0x14, 0x15, 0x16, 0x17 };