Next: ... Up: Control Hazards, Branch Prediction Previous: One-bit branch prediction

Performance of 1-bit prediction

Consider the conditional branch in a loop:


label:

   body of loop
   SUBI R1,R1,#1
   BNEZ R1,label