Optimizing Branch Prediction

Branch optimizations have some of the greatest impact on performance.

Understanding the flow of branches and improving the predictability of branches can increase the speed of your code significantly.

The basic kinds of optimizations that help branch prediction are:

For more details, see the latest Optimization Manual.

Related Topics