]> git.sesse.net Git - stockfish/commitdiff
Remove unneeded & incorrect check.
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Tue, 12 Nov 2019 15:12:09 +0000 (16:12 +0100)
committerStéphane Nicolet <Stephane.Nicolet@u-paris2.fr>
Sun, 8 Dec 2019 23:05:25 +0000 (00:05 +0100)
the removed line is not needed, since with the conditions on SE, eval
equals ttValue (except inCheck), which must be larger than beta if the second condition
is true.

The removed line is also incorrect as eval might be VALUE_NONE at this
location if inCheck. This removal addresses part of https://github.com/official-stockfish/Stockfish/pull/2406#issuecomment-552642608

No functional change.

src/search.cpp

index e976274f28fd4369dc8793b4782e80ef7e7cabc7..26010108dd4c94dfe6066261802b639c8a6cff2d 100644 (file)
@@ -1033,8 +1033,7 @@ moves_loop: // When in check, search starts from here
           // search without the ttMove. So we assume this expected Cut-node is not singular,
           // that multiple moves fail high, and we can prune the whole subtree by returning
           // a soft bound.
-          else if (   eval >= beta
-                   && singularBeta >= beta)
+          else if (singularBeta >= beta)
               return singularBeta;
       }