]> git.sesse.net Git - stockfish/commit
Add -funroll-loops to CXXFLAGS
authorDisservin <disservin.social@gmail.com>
Mon, 14 Aug 2023 11:49:41 +0000 (13:49 +0200)
committerDisservin <disservin.social@gmail.com>
Wed, 16 Aug 2023 19:25:42 +0000 (21:25 +0200)
commit46756996e7884c665da18f357208c2344a0f9374
tree72f25b39967a49296532e3ded573b77c745a80e2
parentfe0dca12f1207a3a1ecca678d7d13bc533fd5332
Add -funroll-loops to CXXFLAGS

Optimize profiling data accuracy by enabling -funroll-loops during the profile
generation phase, in addition to its default activation by -fprofile-use.
This seems to produce a slightly faster binary, for most compilers.

make -j profile-build ARCH=x86-64-avx2

sf_base =  1392875 +/-   5905 (95%)
sf_test =  1402332 +/-   7303 (95%)
diff    =     9457 +/-   4413 (95%)
speedup = 0.67896% +/- 0.317% (95%)

STC:
LLR: 2.93 (-2.94,2.94) <0.00,2.00>
Total: 34784 W: 8970 L: 8665 D: 17149
Ptnml(0-2): 115, 3730, 9405, 4019, 123
https://tests.stockfishchess.org/tests/view/64d944815b17f7c21c0e92e1

closes https://github.com/official-stockfish/Stockfish/pull/4750

No functional change
src/Makefile