Invention Grant
US08745607B2 Reducing branch misprediction impact in nested loop code 有权
减少分支误差对嵌套循环代码的影响

Reducing branch misprediction impact in nested loop code
Abstract:
According to one aspect of the present disclosure, a method and technique for reducing branch misprediction impact for nested loop code is disclosed. The method includes: responsive to identifying code having an outer loop and an inner loop, determining a quantity of iterations of the inner loop for an initial number of iterations of the outer loop; determining a number of processor cycles for executing the quantity of iterations of the inner loop for the initial number of iterations of the outer loop; determining whether the number of processor cycles is less than a threshold; and responsive to determining that the number of processor cycles is less than the threshold, fully unrolling the inner loop for the initial number of iterations of the outer loop.
Public/Granted literature
Information query
Patent Agency Ranking
0/0