CPC G06F 9/3842 (2013.01) [G06F 9/325 (2013.01); G06F 9/3806 (2013.01)] | 14 Claims |
1. An integrated circuit, comprising:
a branch predictor to predict whether a conditional branch is taken for one or more instructions, the branch predictor including circuitry to:
identify a loop branch instruction in the one or more instructions, wherein an operand of the loop branch instruction comprises a loop-control variable;
speculatively calculate a first value of the loop-control variable for a next iteration of the loop branch instruction, comprising extrapolating the first value based on respective values of the loop-control variable from a current iteration of the loop branch instruction and a previous iteration of the loop branch instruction; and
provide a branch prediction for the loop branch instruction based on a context of the first value.
|