Debian Codegraph @

doc/guide/src/RemoveUnused.adoc

raw
1 = RemoveUnused
2
3 <<RemoveUnused#>> is an optimization pass for both the <<SSA#>> and
4 <<SSA2#>> <<IntermediateLanguage#>>s, invoked from <<SSASimplify#>> and
5 <<SSA2Simplify#>>.
6
7 == Description
8
9 This pass aggressively removes unused:
10
11 * datatypes
12 * datatype constructors
13 * datatype constructor arguments
14 * functions
15 * function arguments
16 * function returns
17 * blocks
18 * block arguments
19 * statements (variable bindings)
20 * handlers from non-tail calls (mayRaise analysis)
21 * continuations from non-tail calls (mayReturn analysis)
22
23 == Implementation
24
25 * https://github.com/MLton/mlton/blob/master/mlton/ssa/remove-unused.fun[`remove-unused.fun`]
26 * https://github.com/MLton/mlton/blob/master/mlton/ssa/remove-unused2.fun[`remove-unused2.fun`]
27
28 == Details and Notes
29
30 {empty}