Skip to main content

Module opt

Module opt 

Source
Expand description

Optimizations of the IR before code generation: inlining of calls, constant folding and algebraic simplification, common subexpression elimination, dead code elimination, and the conversion of selects on a scalar predicate into conditionals (so that only the chosen side is computed).

Every pass keeps the values of the function (they are checked against the interpreter in the tests), except the simplifications of Options::fast_math.

Structs§

Options
The options of the optimizations.
Skip
Passes of optimize that can be skipped (ablation). Skipping a pass keeps the values of the function; only the generated code changes.

Functions§

optimize
Optimizes f for code generation.