Skip to content

Commit 037ef3e

Browse files
dubslowvondele
authored andcommitted
Remove one reduction call
even though bench is unchanged to depth 28, due to adjusting depth in singular extensions this might be functional. STC: https://tests.stockfishchess.org/tests/view/63ec21affe833123fef34153 LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 195712 W: 51625 L: 51581 D: 92506 Ptnml(0-2): 504, 20527, 55779, 20513, 533 LTC: https://tests.stockfishchess.org/tests/view/63ed3487fe833123fef375ed LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 32176 W: 8631 L: 8442 D: 15103 Ptnml(0-2): 5, 2794, 10309, 2967, 13 closes #4395 Bench 4283297
1 parent 085cace commit 037ef3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/search.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,8 @@ namespace {
987987

988988
Value delta = beta - alpha;
989989

990+
Depth r = reduction(improving, depth, moveCount, delta, thisThread->rootDelta);
991+
990992
// Step 14. Pruning at shallow depth (~120 Elo). Depth conditions are important for mate finding.
991993
if ( !rootNode
992994
&& pos.non_pawn_material(us)
@@ -996,7 +998,7 @@ namespace {
996998
moveCountPruning = moveCount >= futility_move_count(improving, depth);
997999

9981000
// Reduced depth of the next LMR search
999-
int lmrDepth = std::max(newDepth - reduction(improving, depth, moveCount, delta, thisThread->rootDelta), 0);
1001+
int lmrDepth = std::max(newDepth - r, 0);
10001002

10011003
if ( capture
10021004
|| givesCheck)
@@ -1133,8 +1135,6 @@ namespace {
11331135
// Step 16. Make the move
11341136
pos.do_move(move, st, givesCheck);
11351137

1136-
Depth r = reduction(improving, depth, moveCount, delta, thisThread->rootDelta);
1137-
11381138
// Decrease reduction if position is or has been on the PV
11391139
// and node is not likely to fail low. (~3 Elo)
11401140
if ( ss->ttPv

0 commit comments

Comments
 (0)