From 92cc4db8fcce604913a82079ccb1284881abf6a9 Mon Sep 17 00:00:00 2001 From: 87 Date: Thu, 13 Nov 2025 13:59:29 +0000 Subject: [PATCH] Bench: 11674122 --- src/movepick.cpp | 12 ++---------- src/movepick.hpp | 3 --- src/search.cpp | 4 ---- src/search.hpp | 5 ++--- 4 files changed, 4 insertions(+), 20 deletions(-) diff --git a/src/movepick.cpp b/src/movepick.cpp index cfc1bdd9..40ab19e3 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -59,15 +59,7 @@ Move MovePicker::next() { goto emit_bad_noisy; } - m_stage = Stage::EmitKiller; - - [[fallthrough]]; - - case Stage::EmitKiller: m_stage = Stage::ScoreQuiet; - if (m_tt_move != m_killer && m_killer != Move::none() && m_movegen.is_legal(m_killer)) { - return m_killer; - } [[fallthrough]]; @@ -81,7 +73,7 @@ Move MovePicker::next() { case Stage::EmitQuiet: while (m_current_index < m_quiet.size()) { auto [curr, score] = pick_next(m_quiet); - if (curr != m_tt_move && curr != m_killer) { + if (curr != m_tt_move) { return curr; } } @@ -95,7 +87,7 @@ Move MovePicker::next() { case Stage::EmitBadNoisy: while (m_current_index < m_bad_noisy.size()) { Move curr = m_bad_noisy[m_current_index++]; - if (curr != m_tt_move && curr != m_killer) { + if (curr != m_tt_move) { return curr; } } diff --git a/src/movepick.hpp b/src/movepick.hpp index 6a5f9abb..570dd500 100644 --- a/src/movepick.hpp +++ b/src/movepick.hpp @@ -19,7 +19,6 @@ class MovePicker { m_history(history), m_movegen(pos), m_tt_move(tt_move), - m_killer(ss->killer), m_ply(ply), m_stack(ss) { } @@ -29,7 +28,6 @@ class MovePicker { GenerateMoves, ScoreNoisy, EmitGoodNoisy, - EmitKiller, ScoreQuiet, EmitQuiet, EmitBadNoisy, @@ -68,7 +66,6 @@ class MovePicker { std::array m_scores; Move m_tt_move; - Move m_killer; i32 m_ply; Search::Stack* m_stack; }; diff --git a/src/search.cpp b/src/search.cpp index d8fe62f6..85ec23b8 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -508,8 +508,6 @@ Value Worker::search( i32 alpha_raises = 0; Value non_pawn_material = -1; - // Clear child's killer move. - (ss + 1)->killer = Move::none(); // Clear child's fail high count (ss + 1)->fail_high_count = 0; @@ -748,8 +746,6 @@ Value Worker::search( i32 bonus_depth = depth + (best_value >= beta + 100); const i32 bonus = stat_bonus(bonus_depth); if (quiet_move(best_move)) { - ss->killer = best_move; - m_td.history.update_quiet_stats(pos, best_move, ply, ss, bonus); for (Move quiet : quiets_played) { m_td.history.update_quiet_stats(pos, quiet, ply, ss, -bonus); diff --git a/src/search.hpp b/src/search.hpp index 50f18bd6..59c7adb3 100644 --- a/src/search.hpp +++ b/src/search.hpp @@ -60,9 +60,8 @@ struct PV { }; struct Stack { - Value static_eval = 0; - Move killer = Move::none(); - Move excluded_move; + Value static_eval = 0; + Move excluded_move = Move::none(); ContHistEntry* cont_hist_entry = nullptr; i32 fail_high_count = 0; PV pv;