From 6170558d9377cbef8b42007ac085b9c9941a2b70 Mon Sep 17 00:00:00 2001 From: cj5716 <125858804+cj5716@users.noreply.github.com> Date: Tue, 13 Feb 2024 17:50:16 +0800 Subject: [PATCH] Simplify TT PV reduction This also removes some incorrect fail-high logic. Passed STC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 87968 W: 22634 L: 22468 D: 42866 Ptnml(0-2): 315, 10436, 22323, 10588, 322 https://tests.stockfishchess.org/tests/view/65cb3b641d8e83c78bfd04a9 Passed LTC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 70794 W: 17846 L: 17672 D: 35276 Ptnml(0-2): 44, 7980, 19189, 8126, 58 https://tests.stockfishchess.org/tests/view/65cccee21d8e83c78bfd222c closes #5055 Bench 1203823 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 9574465388e..590ead0f304 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1107,7 +1107,7 @@ Value Search::Worker::search( // Decrease reduction if position is or has been on the PV (~5 Elo) if (ss->ttPv) - r -= 1 + (ttValue > alpha) + (ttValue > beta && tte->depth() >= depth); + r -= 1 + (ttValue > alpha) + (tte->depth() >= depth); // Increase reduction for cut nodes (~4 Elo) if (cutNode)