SLIDE 8 RTAS 2003 Branch Prediction & WCET 8
Two Two-
Level Dynamic
”History has a pattern” History has a pattern”
Use pattern pattern of taken/not taken
- f taken/not taken
- ”taken every other time”, for example
”taken every other time”, for example
- History register tracks outcomes
History register tracks outcomes
- History per branch or global
History per branch or global
Table of counters
- Combination of history and address
Combination of history and address
- 2D table, XOR, ... lots of possibilities
2D table, XOR, ... lots of possibilities address: address: 11100... 11100... history: history: 01001... 01001... +
01 10 11 00 01 10 11 00
. . .
UltraSparc III, Athlon, Pentium 3, Pentium 4, PowerPC G3, G4 UltraSparc III, UltraSparc III, Athlon, Pentium 3, Athlon, Pentium 3, Pentium 4, Pentium 4, PowerPC G3, G4 PowerPC G3, G4