From 52bbf372bb4956595e730f4dba05ee6b78305ad0 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 15 Dec 2012 13:11:10 +0100 Subject: [PATCH 1/1] Don't need to check for bestValue < beta to split MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit With rearrangement of fail high code this condition is no more necessary. Found by Jörg Oster. No fuctional change. --- src/search.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2