Debian Codegraph @

doc/guide/src/SSASimplify.adoc

raw
1 = SSASimplify
2
3 The optimization passes for the <<SSA#>> <<IntermediateLanguage#>> are
4 collected and controlled by the `Simplify` functor
5 (https://github.com/MLton/mlton/blob/master/mlton/ssa/simplify.sig[`simplify.sig`],
6 https://github.com/MLton/mlton/blob/master/mlton/ssa/simplify.fun[`simplify.fun`]).
7
8 The following optimization passes are implemented:
9
10 * <<CombineConversions#>>
11 * <<CommonArg#>>
12 * <<CommonBlock#>>
13 * <<CommonSubexp#>>
14 * <<ConstantPropagation#>>
15 * <<Contify#>>
16 * <<DuplicateGlobals#>>
17 * <<Flatten#>>
18 * <<Inline#>>
19 * <<IntroduceLoops#>>
20 * <<KnownCase#>>
21 * <<LocalFlatten#>>
22 * <<LocalRef#>>
23 * <<LoopInvariant#>>
24 * <<LoopUnroll#>>
25 * <<LoopUnswitch#>>
26 * <<Redundant#>>
27 * <<RedundantTests#>>
28 * <<RemoveUnused#>>
29 * <<ShareZeroVec#>>
30 * <<SimplifyTypes#>>
31 * <<SplitTypes#>>
32 * <<Useless#>>
33
34 The following implementation passes are implemented:
35
36 * <<PolyEqual#>>
37 * <<PolyHash#>>
38
39 There are additional analysis and rewrite passes that augment many of the other optimization passes:
40
41 * <<Multi#>>
42 * <<Restore#>>
43 * <<Shrink#>>
44
45 The optimization passes can be controlled from the command-line by the options:
46
47 * `-diag-pass <pass>` -- keep diagnostic info for pass
48 * `-disable-pass <pass>` -- skip optimization pass (if normally performed)
49 * `-enable-pass <pass>` -- perform optimization pass (if normally skipped)
50 * `-keep-pass <pass>` -- keep the results of pass
51 * `-loop-passes <n>` -- loop optimization passes
52 * `-ssa-passes <passes>` -- ssa optimization passes