mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 18:17:02 +08:00
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.
This commit is contained in:
@@ -1003,9 +1003,10 @@ split_point_start: // At split points actual search starts from here
|
|||||||
// Step 19. Check for splitting the search
|
// Step 19. Check for splitting the search
|
||||||
if ( !SpNode
|
if ( !SpNode
|
||||||
&& depth >= Threads.min_split_depth()
|
&& depth >= Threads.min_split_depth()
|
||||||
&& bestValue < beta
|
|
||||||
&& Threads.available_slave_exists(thisThread))
|
&& Threads.available_slave_exists(thisThread))
|
||||||
{
|
{
|
||||||
|
assert(bestValue < beta);
|
||||||
|
|
||||||
bestValue = Threads.split<FakeSplit>(pos, ss, alpha, beta, bestValue, &bestMove,
|
bestValue = Threads.split<FakeSplit>(pos, ss, alpha, beta, bestValue, &bestMove,
|
||||||
depth, threatMove, moveCount, mp, NT);
|
depth, threatMove, moveCount, mp, NT);
|
||||||
if (bestValue >= beta)
|
if (bestValue >= beta)
|
||||||
|
|||||||
Reference in New Issue
Block a user