User:Realazthat/Projects wishlist/LLVM/Tactical optimizations: Difference between revisions

no edit summary
(Created page with "These are constant time optimizations; they only increase the program's execution speed by a constant. Almost all optimizations fit into this category. == Branching == <lang llv...")
 
No edit summary
Line 47:
</lang>
In the above code, LLVM will allocate the two integers a, b, and after each function call reload then from the stack into registers for comparison, even after the printf calls, where the integers are passed by value.
 
== Recursive to iterative functions ==
Automatically convert recursive functions to iterative with a stack
 
=== Eliminate the stack ===
Eliminate the stack where only the top is used (example of dynamic programming)