Skip to main content

Questions tagged [branch-prediction]

Branch prediction is a performance optimization where the system guesses which branch of a conditional will be taken in advance in order to begin execution speculatively. Use this tag for questions about designing or implementing language features relating to branch prediction, or implementing branch prediction in a virtual machine.

Filter by
Sorted by
Tagged with
6 votes
1 answer

How do I implement branch prediction for JIT?

I have a language with a working interpreter, and I am trying to add just-in-time compilation (JIT) to it. For ease of implementation, only individual branches are compiled, while control flow ...
Bbrk24's user avatar
  • 8,937
10 votes
1 answer

Syntax options for providing branch prediction information

Branch prediction information can affect performance. Languages to provide programmers with ways to provide branch prediction hints to improve performance of code. One option is C++ ...
CPlus's user avatar
  • 8,281