Skip to content

Commit 8527625

Browse files
Temp fix for swizzle_dyn
- disable the AVX512 variant for now (flaky) - tell Clippy to knock it off
1 parent d361e43 commit 8527625

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/core_simd/src/swizzle_dyn.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ where
4343
32 => transize(x86::_mm256_permutexvar_epi8, self, idxs),
4444
// Notable absence: avx512bw shuffle
4545
// If avx512bw is available, odds of avx512vbmi are good
46-
#[cfg(target_feature = "avx512vbmi")]
47-
64 => transize(x86::_mm512_permutexvar_epi8, self, idxs),
46+
// FIXME: initial AVX512VBMI variant didn't actually pass muster
47+
// #[cfg(target_feature = "avx512vbmi")]
48+
// 64 => transize(x86::_mm512_permutexvar_epi8, self, idxs),
4849
_ => {
4950
let mut array = [0; N];
5051
for (i, k) in idxs.to_array().into_iter().enumerate() {
@@ -67,6 +68,7 @@ where
6768
#[target_feature(enable = "avx2")]
6869
#[allow(unused)]
6970
#[inline]
71+
#[allow(clippy::let_and_return)]
7072
unsafe fn avx2_pshufb(bytes: Simd<u8, 32>, idxs: Simd<u8, 32>) -> Simd<u8, 32> {
7173
use crate::simd::SimdPartialOrd;
7274
#[cfg(target_arch = "x86")]

0 commit comments

Comments
 (0)