about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2023-05-10 05:45:24 -0700
committerJubilee <46493976+workingjubilee@users.noreply.github.com>2023-05-10 06:49:00 -0700
commit852762563aa890286eda2f668b8af30f8aa84216 (patch)
treed34122f96b0871367df3cd901c368356f932193d
parentd361e4335f7e37d2409820510e059744d1c96457 (diff)
downloadrust-852762563aa890286eda2f668b8af30f8aa84216.tar.gz
rust-852762563aa890286eda2f668b8af30f8aa84216.zip
Temp fix for swizzle_dyn
- disable the AVX512 variant for now (flaky)
- tell Clippy to knock it off
-rw-r--r--crates/core_simd/src/swizzle_dyn.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/core_simd/src/swizzle_dyn.rs b/crates/core_simd/src/swizzle_dyn.rs
index 5c3a2c1824f..3eb80d5dca1 100644
--- a/crates/core_simd/src/swizzle_dyn.rs
+++ b/crates/core_simd/src/swizzle_dyn.rs
@@ -43,8 +43,9 @@ where
                 32 => transize(x86::_mm256_permutexvar_epi8, self, idxs),
                 // Notable absence: avx512bw shuffle
                 // If avx512bw is available, odds of avx512vbmi are good
-                #[cfg(target_feature = "avx512vbmi")]
-                64 => transize(x86::_mm512_permutexvar_epi8, self, idxs),
+                // FIXME: initial AVX512VBMI variant didn't actually pass muster
+                // #[cfg(target_feature = "avx512vbmi")]
+                // 64 => transize(x86::_mm512_permutexvar_epi8, self, idxs),
                 _ => {
                     let mut array = [0; N];
                     for (i, k) in idxs.to_array().into_iter().enumerate() {
@@ -67,6 +68,7 @@ where
 #[target_feature(enable = "avx2")]
 #[allow(unused)]
 #[inline]
+#[allow(clippy::let_and_return)]
 unsafe fn avx2_pshufb(bytes: Simd<u8, 32>, idxs: Simd<u8, 32>) -> Simd<u8, 32> {
     use crate::simd::SimdPartialOrd;
     #[cfg(target_arch = "x86")]