]> git.sesse.net Git - stockfish/commitdiff
Simplify TT cutoff
authorStefan Geschwentner <stgeschwentner@gmail.com>
Thu, 20 Jul 2023 20:12:15 +0000 (22:12 +0200)
committerStéphane Nicolet <cassio@free.fr>
Mon, 24 Jul 2023 00:23:43 +0000 (02:23 +0200)
Remove the exact bound condition from TT depth check.

STC:
https://tests.stockfishchess.org/tests/view/64b30b320cdec37b957359e9
LLR: 2.93 (-2.94,2.94) <-1.75,0.25>
Total: 332928 W: 84895 L: 85003 D: 163030
Ptnml(0-2): 1242, 39200, 85604, 39260, 1158

LTC:
https://tests.stockfishchess.org/tests/view/64b74e2adc56e1650abac0b6
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 92946 W: 23628 L: 23482 D: 45836
Ptnml(0-2): 38, 10033, 26192, 10165, 45

closes https://github.com/official-stockfish/Stockfish/pull/4702

Bench: 1601764

src/search.cpp

index 616d11336eee92595882ce885f2175d114782e81..c2d35796231b0b9ebcb4a5645553e343a28d46b5 100644 (file)
@@ -616,7 +616,7 @@ namespace {
     // At non-PV nodes we check for an early TT cutoff
     if (  !PvNode
         && !excludedMove
-        && tte->depth() > depth - (tte->bound() == BOUND_EXACT)
+        && tte->depth() > depth
         && ttValue != VALUE_NONE // Possible in case of TT access race or if !ttHit
         && (tte->bound() & (ttValue >= beta ? BOUND_LOWER : BOUND_UPPER)))
     {