Aussie AI
Expression Transformations
-
Book Excerpt from "Generative AI in C++"
-
by David Spuler, Ph.D.
Expression Transformations
Expression-level types of arithmetic improvements on an expression with multiple operations include:
- Constant folding (compile-time precomputation of constant expressions)
- Common subexpression elimination (only computing things once in expressions)
- Algebraic identities in computations
- Type consistency (avoid conversions)
• Next: • Up: Table of Contents |
The new AI programming book by Aussie AI co-founders:
Get your copy from Amazon: Generative AI in C++ |