From d9e4a7d1b60e2d3015d6883af654234463a7ca41 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Sat, 14 Sep 2024 10:58:48 -0700 Subject: [PATCH] Remove bogus assert --- ConflictSet.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index f0e4ccf..5ff2a75 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -2925,17 +2925,11 @@ horizontalMaxUpTo16(InternalVersionT *vs, InternalVersionT z, int len) { uint32_t zero; memcpy(&zero, &z, sizeof(zero)); auto zeroVec = _mm512_set1_epi32(zero); - auto actual = InternalVersionT( + auto max = InternalVersionT( zero + _mm512_reduce_max_epi32(_mm512_sub_epi32( _mm512_mask_loadu_epi32(zeroVec, _mm512_int2mask((1 << len) - 1), vs), zeroVec))); - // Hope it gets vectorized - InternalVersionT max = vs[0]; - for (int i = 1; i < len; ++i) { - max = std::max(vs[i], max); - } - assert(actual == max); return max; #endif }