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
This commit is contained in:
Shawn Xu
2025-11-30 21:43:54 +01:00
committed by Disservin
parent 1132d893e0
commit 93f2d14d95
-12
View File
@@ -584,18 +584,6 @@ void update_accumulator_incremental(
else else
FeatureSet::append_changed_indices(perspective, ksq, computed.diff, added, removed); FeatureSet::append_changed_indices(perspective, ksq, computed.diff, added, removed);
if (!added.size() && !removed.size())
{
auto& targetAcc = target_state.template acc<TransformedFeatureDimensions>();
const auto& sourceAcc = computed.template acc<TransformedFeatureDimensions>();
targetAcc.accumulation[perspective] = sourceAcc.accumulation[perspective];
targetAcc.psqtAccumulation[perspective] = sourceAcc.psqtAccumulation[perspective];
targetAcc.computed[perspective] = true;
return;
}
auto updateContext = auto updateContext =
make_accumulator_update_context(perspective, featureTransformer, computed, target_state); make_accumulator_update_context(perspective, featureTransformer, computed, target_state);