Skip to content

Commit 72d693e

Browse files
authored
spec : reset i_last when low acceptance streak occurs (#22168)
By resetting i_last to zero, we will include the current context when rebuilding the speculative map.
1 parent 98d2d28 commit 72d693e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/speculative.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ struct common_speculative_state_ngram_mod : public common_speculative_state {
749749

750750
mod.reset();
751751
n_low = 0;
752+
i_last = 0;
752753
}
753754
} else {
754755
n_low = 0;

0 commit comments

Comments
 (0)