User:Realazthat/Projects wishlist/LLVM/Tactical optimizations: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 53: | Line 53: | ||
=== Eliminate the stack === |
=== Eliminate the stack === |
||
Eliminate the stack where only the top is used (example of dynamic programming) |
Eliminate the stack where only the top is used (example of dynamic programming) |
||
=== Reorder conditional branches === |
|||
Reorder if-else statements/switches to have the most likely condition first to avoid checking all of the conditions. |
|||
* Determine the likelihood of a condition |
|||
* Determine how often a condition will be true if its deterministic |