Branch Misprediction Performance Impact

Equation: RESOURCE_STALLS.BR_MISS_CLEAR / CPU_CLK_UNHALTED.CORE

Category: Branch Ratios; Basic Performance Tuning Ratios; Ratios for Tuning Assistant Advice;

Definition: There can be many branch mispredictions, in which case improving the predictability of branches can improve performance. Also, the performance impact of each branch misprediction might be high. This happens if the code prior to the mispredicted branch has high CPI, such as cache misses, which cannot be parallelized with following code due to the branch misprediction. Reducing the CPI of this code will reduce the misprediction performance impact.