Menu

Commit [r6250]  Maximize  Restore  History

Adding __builtin_expect (likely/unlikely) detection to the configure script.

Time to run test/test_netbsd_pmax_install.sh
--------------------------------------------

likely() put in the hot path of the MIPS load/store implementation
(actually unlikely()).

clang 6.0.0 without likely(): with likely():

without -flto: 244.13 seconds 242.81 seconds
with -flto: 230.?? seconds 229.42 seconds

g++ 8.3.0 without likely(): with likely():

without -flto: 232.40 seconds 232.78 seconds
with -flto: 231.88 seconds 228.56 seconds

Not very noticable, but I'll leave them in, for now.

gavare 2019-06-14

changed /gxemul/trunk/HISTORY
changed /gxemul/trunk/configure
changed /gxemul/trunk/src/cpus/cpu_mips_instr.cc
changed /gxemul/trunk/src/cpus/cpu_mips_instr_loadstore.cc
/gxemul/trunk/HISTORY Diff Switch to side-by-side view
Loading...
/gxemul/trunk/configure Diff Switch to side-by-side view
Loading...
/gxemul/trunk/src/cpus/cpu_mips_instr.cc Diff Switch to side-by-side view
Loading...
/gxemul/trunk/src/cpus/cpu_mips_instr_loadstore.cc Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.