Skip to content

Add IIR and remove redundant code#1080

Open
TheSecondComing123 wants to merge 1 commit into
codedeliveryservice:mainfrom
TheSecondComing123:main
Open

Add IIR and remove redundant code#1080
TheSecondComing123 wants to merge 1 commit into
codedeliveryservice:mainfrom
TheSecondComing123:main

Conversation

@TheSecondComing123

@TheSecondComing123 TheSecondComing123 commented Jun 17, 2026

Copy link
Copy Markdown

Hopefully, this helps. Removed that part of the code because the write only came from a static eval without searching.

Bench: 1886322

Copilot AI review requested due to automatic review settings June 17, 2026 00:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR tweaks the search algorithm by adding an Internal Iterative Reduction (IIR) condition in the main search and adjusting transposition table (TT) storage behavior in quiescence search.

Changes:

  • Add an IIR depth reduction when no TT move exists at sufficient depth.
  • Remove a conditional TT write in qsearch before returning best_score.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/search.rs
Comment on lines +738 to +741
// Internal Iterative Reductions (IIR)
if depth >= 4 && tt_move.is_null() && !excluded {
depth -= 1;
}
Comment thread src/search.rs
Comment on lines 1268 to 1272
best_score = lerp(best_score, beta, 0.8256);
}

if entry.is_none() {
td.shared.tt.write(hash, TtDepth::SOME, raw_eval, best_score, Bound::Lower, Move::NULL, ply, tt_pv, false);
}

return best_score;
}
@TheSecondComing123 TheSecondComing123 changed the title Add IIR and remove redundant(?) code Add IIR and remove redundant code Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants