mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 15:37:47 +00:00
Omit two unneeded tests
These redundant tests were intended as a speed-up, but they do not seem to provide any speed anymore. STC: https://tests.stockfishchess.org/tests/view/64e9079c85e3e95030fd8259 LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 134688 W: 34338 L: 34226 D: 66124 Ptnml(0-2): 426, 15122, 36124, 15258, 414 closes https://github.com/official-stockfish/Stockfish/pull/4767 No functional change
This commit is contained in:
committed by
Stéphane Nicolet
parent
4c4cb185aa
commit
8cd5cbf693
@@ -518,7 +518,6 @@ namespace {
|
|||||||
// Check if we have an upcoming move that draws by repetition, or
|
// Check if we have an upcoming move that draws by repetition, or
|
||||||
// if the opponent had an alternative move earlier to this position.
|
// if the opponent had an alternative move earlier to this position.
|
||||||
if ( !rootNode
|
if ( !rootNode
|
||||||
&& pos.rule50_count() >= 3
|
|
||||||
&& alpha < VALUE_DRAW
|
&& alpha < VALUE_DRAW
|
||||||
&& pos.has_game_cycle(ss->ply))
|
&& pos.has_game_cycle(ss->ply))
|
||||||
{
|
{
|
||||||
@@ -1398,7 +1397,6 @@ moves_loop: // When in check, search starts here
|
|||||||
// Check if we have an upcoming move that draws by repetition, or
|
// Check if we have an upcoming move that draws by repetition, or
|
||||||
// if the opponent had an alternative move earlier to this position.
|
// if the opponent had an alternative move earlier to this position.
|
||||||
if ( depth < 0
|
if ( depth < 0
|
||||||
&& pos.rule50_count() >= 3
|
|
||||||
&& alpha < VALUE_DRAW
|
&& alpha < VALUE_DRAW
|
||||||
&& pos.has_game_cycle(ss->ply))
|
&& pos.has_game_cycle(ss->ply))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user