From 93f2d14d95ca72ec2ec96c6e3de0b9a6121fe118 Mon Sep 17 00:00:00 2001 From: Shawn Xu Date: Thu, 13 Nov 2025 19:09:06 -0800 Subject: [PATCH] Simplify Incremental Updates Passed Non-regression STC: LLR: 3.03 (-2.94,2.94) <-1.75,0.25> Total: 277856 W: 71575 L: 71611 D: 134670 Ptnml(0-2): 842, 30719, 75836, 30695, 836 https://tests.stockfishchess.org/tests/view/69169dc17ca8781852331d76 Supersedes #6430 closes https://github.com/official-stockfish/Stockfish/pull/6434 No functional change --- src/nnue/nnue_accumulator.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/nnue/nnue_accumulator.cpp b/src/nnue/nnue_accumulator.cpp index e63a68cb7..358a4b278 100644 --- a/src/nnue/nnue_accumulator.cpp +++ b/src/nnue/nnue_accumulator.cpp @@ -584,18 +584,6 @@ void update_accumulator_incremental( else FeatureSet::append_changed_indices(perspective, ksq, computed.diff, added, removed); - if (!added.size() && !removed.size()) - { - auto& targetAcc = target_state.template acc(); - const auto& sourceAcc = computed.template acc(); - - targetAcc.accumulation[perspective] = sourceAcc.accumulation[perspective]; - targetAcc.psqtAccumulation[perspective] = sourceAcc.psqtAccumulation[perspective]; - targetAcc.computed[perspective] = true; - - return; - } - auto updateContext = make_accumulator_update_context(perspective, featureTransformer, computed, target_state);