Module optimize

Module optimize 

Source

Structs§

OptStats
Statistics from optimization.

Functions§

eliminate_common_subexprs
Eliminate common sub-expressions. Returns count of CSE-eliminated nodes.
eliminate_dead_code
Remove nodes not reachable from any output. Returns count of removed nodes.
eliminate_identities
Eliminate redundant identity nodes. Returns count of identities removed.
fold_constants
Fold constant expressions. Returns count of folded nodes.
fuse_operators
Fuse compatible operator sequences. Returns count of fusions applied.
optimize
Run all optimization passes on every graph in the program. Returns the total number of transformations applied.
optimize_graph
Run all optimization passes on a single graph. Runs passes in a loop until convergence (fixed point).
optimize_graph_with_stats
Run all passes with detailed statistics.