Static branch prediction - Compiler-based
Opcode bit in branch instruction allows the compiler to reverse the hardware prediction.
There are two approaches the compiler can use to statically predict which way a branch will go:
- it can examine the program code,
- or it can use profile information (collected from earlier runs)