Skip to content

Commit 1163d97

Browse files
BM123499snicolet
authored andcommitted
Simplify LMR multiThread condition
STC (8 threads): LLR: 2.95 (-2.94,2.94) <-2.50,0.50> Total: 110584 W: 27818 L: 27807 D: 54959 Ptnml(0-2): 156, 12089, 30791, 12100, 156 https://tests.stockfishchess.org/tests/view/6172ef436ce927be325583a9 LTC (8 threads): LLR: 2.94 (-2.94,2.94) <-2.50,0.50> Total: 23632 W: 6025 L: 5903 D: 11704 Ptnml(0-2): 5, 2292, 7100, 2414, 5 https://tests.stockfishchess.org/tests/view/6173cf096ce927be32558412 closes #3757 No functional change (in the single-threaded case) Bench: 6689428
1 parent fc8213c commit 1163d97

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/search.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,10 +1159,9 @@ namespace {
11591159
// cases where we extend a son if it has good chances to be "interesting".
11601160
if ( depth >= 3
11611161
&& moveCount > 1 + 2 * rootNode
1162-
&& ( !captureOrPromotion
1163-
|| (cutNode && (ss-1)->moveCount > 1)
1164-
|| !ss->ttPv)
1165-
&& (!PvNode || ss->ply > 1 || thisThread->id() % 4 != 3))
1162+
&& ( !ss->ttPv
1163+
|| !captureOrPromotion
1164+
|| (cutNode && (ss-1)->moveCount > 1)))
11661165
{
11671166
Depth r = reduction(improving, depth, moveCount, rangeReduction > 2);
11681167

0 commit comments

Comments
 (0)