Most software code contains conditional branches. In code, they appear in if-then-else clauses, loops, and switch-case constructs. For better performance, modern processors predict the branch and execute the following instructions speculatively. It is a powerful optimization.