Anonymous user
User:Realazthat/Projects wishlist/LLVM/Tactical optimizations: Difference between revisions
User:Realazthat/Projects wishlist/LLVM/Tactical optimizations (view source)
Revision as of 16:20, 21 October 2010
, 13 years agono edit summary
No edit summary |
No edit summary |
||
Line 53:
=== Eliminate the stack ===
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
|