diff --git a/src/search.cpp b/src/search.cpp index a58231d2..9779aeab 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -956,6 +956,16 @@ moves_loop: // When in check search starts from here continue; } } + else if ( depth < 3 * ONE_PLY + && !inCheck + && bestValue > VALUE_MATED_IN_MAX_PLY + && !rootNode + && ( captureOrPromotion + || givesCheck + || pos.advanced_pawn_push(move)) + && pos.see_sign(move) < VALUE_ZERO + ) + continue; // Speculative prefetch as early as possible prefetch(TT.first_entry(pos.key_after(move)));