To remedy this weakness, 2-bit prediction schemes are often used. By using 2 bits rather than 1, a branch that strongly favors taken or not take will be mispredicted only once. For example, loop branch is mispredicted only once on the last iteration. |
“I’ve learned that you shouldn’t go through life with a catcher’s mitt on both hands; you need to be able to throw some things back.” ― Maya Angelou |