摘要 |
<p>Systems and methods for branch prediction, including predicting evaluation of a producer instruction (102) such as a compare instruction, by encoding a prediction field (102p) in the producer instruction, and predicting evaluation (107, using 104, 106) of the producer instruction by using the encoded prediction field. A consumer instruction such as a conditional branch instruction predicated on the producer instruction can be speculatively executed based on the predicted evaluation of the producer instruction. The producer instruction is executed in an execution pipeline (112) to determine an actual evaluation (113) of the producer instruction, and if necessary, the prediction field is updated by update logic based on the actual evaluation and the predicted evaluation. The producer instruction can be updated in memory (108) with the updated prediction field.</p> |