From: Shaw Nguyen Date: Wed, 18 Mar 2026 16:45:06 +0000 (+0700) Subject: ggml-cpu/x86: fix unused changemask warning in repack (llama/20692) X-Git-Tag: v0.9.9~47 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f209a8663aaa4efcb73e64a0696549f58bb644bf;p=pkg%2Fggml%2Fsources%2Fggml ggml-cpu/x86: fix unused changemask warning in repack (llama/20692) --- diff --git a/src/ggml-cpu/arch/x86/repack.cpp b/src/ggml-cpu/arch/x86/repack.cpp index 33c6cb65..af1cebad 100644 --- a/src/ggml-cpu/arch/x86/repack.cpp +++ b/src/ggml-cpu/arch/x86/repack.cpp @@ -531,7 +531,6 @@ static void gemv_q4_b32_8x8_q8_0_lut_avx(int n, float * GGML_RESTRICT s, size_t UNUSED(bs); - __m128i changemask = _mm_set_epi8(15, 14, 7, 6, 13, 12, 5, 4, 11, 10, 3, 2, 9, 8, 1, 0); __m256i finalpermutemask = _mm256_set_epi32(7, 5, 3, 1, 6, 4, 2, 0); // Permute mask used for easier vector processing at later stages @@ -580,6 +579,7 @@ static void gemv_q4_b32_8x8_q8_0_lut_avx(int n, float * GGML_RESTRICT s, size_t if constexpr ( std::is_same_v || std::is_same_v) { + const __m128i changemask = _mm_set_epi8(15, 14, 7, 6, 13, 12, 5, 4, 11, 10, 3, 2, 9, 8, 1, 0); col_scale_f32 = GGML_F32Cx8_REARRANGE_LOAD(b_ptr[b].d, changemask); } else if constexpr (std::is_same_v) { // Load 8 E8M0 exponents and convert to float via LUT