optimizing predictable branches on x86

J.C. Pizarro jcpiza@gmail.com
Tue Feb 26 17:26:00 GMT 2008


It's a final summary for good performance of the tested machines:

  + unpredictable: * don't use conditional jmp (the worst).
 /                 * use cmov or C version.
/
\                 + no deps: * use cmov or C version.
 \               /
  + predictable: \
                  + has deps: * don't use cmov (the worst).
                              * use conditional jmp (the best).



More information about the Gcc mailing list