From: Marco Costalba Date: Sat, 15 Dec 2012 12:11:10 +0000 (+0100) Subject: Don't need to check for bestValue < beta to split X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=52bbf372bb4956595e730f4dba05ee6b78305ad0 Don't need to check for bestValue < beta to split With rearrangement of fail high code this condition is no more necessary. Found by Jörg Oster. No fuctional change. --- diff --git a/src/search.cpp b/src/search.cpp index f6c2233b..654efb32 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1003,9 +1003,10 @@ split_point_start: // At split points actual search starts from here // Step 19. Check for splitting the search if ( !SpNode && depth >= Threads.min_split_depth() - && bestValue < beta && Threads.available_slave_exists(thisThread)) { + assert(bestValue < beta); + bestValue = Threads.split(pos, ss, alpha, beta, bestValue, &bestMove, depth, threatMove, moveCount, mp, NT); if (bestValue >= beta)