Remove step in update_accumulator_refresh_cache

Passed simplification STC
https://tests.stockfishchess.org/tests/live_elo/69c9c050a54395a76133504c

LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 304544 W: 78502 L: 78574 D: 147468
Ptnml(0-2): 906, 33590, 83358, 33506, 912

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

No functional change
This commit is contained in:
anematode
2026-04-09 21:53:08 +02:00
committed by Disservin
parent 969542e4f0
commit bb752eb2f6
+2 -15
View File
@@ -746,20 +746,7 @@ void update_accumulator_refresh_cache(Color pers
for (IndexType k = 0; k < Tiling::NumRegs; ++k) for (IndexType k = 0; k < Tiling::NumRegs; ++k)
acc[k] = entryTile[k]; acc[k] = entryTile[k];
int i = 0; for (int i = 0; i < removed.ssize(); ++i)
for (; i < std::min(removed.ssize(), added.ssize()); ++i)
{
size_t indexR = removed[i];
const size_t offsetR = Dimensions * indexR;
auto* columnR = reinterpret_cast<const vec_t*>(&weights[offsetR]);
size_t indexA = added[i];
const size_t offsetA = Dimensions * indexA;
auto* columnA = reinterpret_cast<const vec_t*>(&weights[offsetA]);
for (IndexType k = 0; k < Tiling::NumRegs; ++k)
acc[k] = fused<Vec16Wrapper, Add, Sub>(acc[k], columnA[k], columnR[k]);
}
for (; i < removed.ssize(); ++i)
{ {
size_t index = removed[i]; size_t index = removed[i];
const size_t offset = Dimensions * index; const size_t offset = Dimensions * index;
@@ -768,7 +755,7 @@ void update_accumulator_refresh_cache(Color pers
for (IndexType k = 0; k < Tiling::NumRegs; ++k) for (IndexType k = 0; k < Tiling::NumRegs; ++k)
acc[k] = vec_sub_16(acc[k], column[k]); acc[k] = vec_sub_16(acc[k], column[k]);
} }
for (; i < added.ssize(); ++i) for (int i = 0; i < added.ssize(); ++i)
{ {
size_t index = added[i]; size_t index = added[i];
const size_t offset = Dimensions * index; const size_t offset = Dimensions * index;