Debian Codegraph @

doc/guide/src/SSA2Simplify.adoc

raw
1 = SSA2Simplify
2
3 The optimization passes for the <<SSA2#>> <<IntermediateLanguage#>> are
4 collected and controlled by the `Simplify2` functor
5 (https://github.com/MLton/mlton/blob/master/mlton/ssa/simplify2.sig[`simplify2.sig`],
6 https://github.com/MLton/mlton/blob/master/mlton/ssa/simplify2.fun[`simplify2.fun`]).
7
8 The following optimization passes are implemented:
9
10 * <<DeepFlatten#>>
11 * <<RefFlatten#>>
12 * <<RemoveUnused#>>
13 * <<Zone#>>
14
15 There are additional analysis and rewrite passes that augment many of the other optimization passes:
16
17 * <<Restore#>>
18 * <<Shrink#>>
19
20 The optimization passes can be controlled from the command-line by the options
21
22 * `-diag-pass <pass>` -- keep diagnostic info for pass
23 * `-disable-pass <pass>` -- skip optimization pass (if normally performed)
24 * `-enable-pass <pass>` -- perform optimization pass (if normally skipped)
25 * `-keep-pass <pass>` -- keep the results of pass
26 * `-loop-passes <n>` -- loop optimization passes
27 * `-ssa2-passes <passes>` -- ssa optimization passes