Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up search #5854

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xu-shawn
Copy link
Contributor

@xu-shawn xu-shawn commented Feb 3, 2025

  • Correct IIR scaling comments
  • Replace (PvNode || cutNode) with !allNode
  • Consistent formatting for scaler tags
  • Add comments to some recently-introduced LMR terms
  • Add comments on PCM bonus tweaks

Passed Non-regression STC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 389472 W: 102457 L: 102622 D: 184393
Ptnml(0-2): 1676, 41887, 107798, 41676, 1699
https://tests.stockfishchess.org/tests/view/67a0ea670774dfd78deb23cd

bench 3088494

@xu-shawn xu-shawn changed the title cleanup Clean up search Feb 3, 2025
@xu-shawn xu-shawn force-pushed the cleanup_search branch 2 times, most recently from 0de6059 to 05b008d Compare February 3, 2025 06:16
@mstembera
Copy link
Contributor

Adding all these branches to compute bonusScale is probably not a good thing.

@xu-shawn
Copy link
Contributor Author

xu-shawn commented Feb 3, 2025

I think both the old and new implementation have branching https://godbolt.org/z/6ob5Tscfd, though I can submit a test if needed.

@mstembera
Copy link
Contributor

Interesting the new assembly is more similar to the original than I would have thought but still not the same. I would run an STC just to be sure but see what the maintainers say.

@Disservin
Copy link
Member

drop the unnecessary comments and run a non regression test to silence the doubters : D
also writing godbolt like this makes it easier to compare the assembly
https://godbolt.org/z/j4E55Mo89

@xu-shawn
Copy link
Contributor Author

xu-shawn commented Feb 4, 2025

Passed STC Non-reg: https://tests.stockfishchess.org/tests/view/67a0ea670774dfd78deb23cd

@xu-shawn
Copy link
Contributor Author

xu-shawn commented Feb 4, 2025

Rebased on #5865

@xu-shawn
Copy link
Contributor Author

Rebased

bench 3197798
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.

3 participants