From 5dc0dea5155b650a15f1d14caee0cb4ca2fedf22 Mon Sep 17 00:00:00 2001 From: Paul Dubs Date: Mon, 20 Apr 2026 14:37:04 +0200 Subject: [PATCH] Reset i_last when low acceptance streak occurs By resetting i_last to zero, we will include the current context when rebuilding the speculative map. --- common/speculative.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/speculative.cpp b/common/speculative.cpp index daa2b5a8ac9..20e38bec46c 100644 --- a/common/speculative.cpp +++ b/common/speculative.cpp @@ -749,6 +749,7 @@ struct common_speculative_state_ngram_mod : public common_speculative_state { mod.reset(); n_low = 0; + i_last = 0; } } else { n_low = 0;