Gshare
Gshare is a type of dynamic branch predictor used in computer processors to guess the direction of conditional branches. It belongs to the family of global history predictors, aiming to improve accuracy by exploiting correlations in branches that occur across the program, rather than relying solely on per-branch history.
The mechanism of a Gshare predictor centers on two main components: a global history register (GHR) and
Gshare offers advantages over simple PC-based predictors by reducing aliasing and better capturing correlations among branches