diff --git a/src/arch/x86/AVX2.cpp b/src/arch/x86/AVX2.cpp index 95ce663..7c834da 100644 --- a/src/arch/x86/AVX2.cpp +++ b/src/arch/x86/AVX2.cpp @@ -42,11 +42,6 @@ namespace hat::detail { load_signature_256(signature, signatureBytes, signatureMask); } - begin = next_boundary_align(begin); - if (begin >= end) LIBHAT_UNLIKELY { - return {}; - } - auto [pre, vec, post] = segment_scan<__m256i, veccmp>(begin, end, signature.size(), cmpIndex); if (!pre.empty()) { diff --git a/src/arch/x86/AVX512.cpp b/src/arch/x86/AVX512.cpp index 202fc67..5581784 100644 --- a/src/arch/x86/AVX512.cpp +++ b/src/arch/x86/AVX512.cpp @@ -43,11 +43,6 @@ namespace hat::detail { load_signature_512(signature, signatureBytes, signatureMask); } - begin = next_boundary_align(begin); - if (begin >= end) LIBHAT_UNLIKELY { - return {}; - } - auto [pre, vec, post] = segment_scan<__m512i, veccmp>(begin, end, signature.size(), cmpIndex); if (!pre.empty()) { diff --git a/src/arch/x86/SSE.cpp b/src/arch/x86/SSE.cpp index 49b7ed7..865a810 100644 --- a/src/arch/x86/SSE.cpp +++ b/src/arch/x86/SSE.cpp @@ -42,11 +42,6 @@ namespace hat::detail { load_signature_128(signature, signatureBytes, signatureMask); } - begin = next_boundary_align(begin); - if (begin >= end) LIBHAT_UNLIKELY { - return {}; - } - auto [pre, vec, post] = segment_scan<__m128i, veccmp>(begin, end, signature.size(), cmpIndex); if (!pre.empty()) {