Debian Codegraph @

doc/guide/src/Contify.adoc

raw
1 = Contify
2
3 <<Contify#>> is an optimization pass for the <<SSA#>>
4 <<IntermediateLanguage#>>, invoked from <<SSASimplify#>>.
5
6 == Description
7
8 Contification is a compiler optimization that turns a function that
9 always returns to the same place into a continuation. This exposes
10 control-flow information that is required by many optimizations,
11 including traditional loop optimizations.
12
13 == Implementation
14
15 * https://github.com/MLton/mlton/blob/master/mlton/ssa/contify.fun[`contify.fun`]
16
17 == Details and Notes
18
19 See <<References#FluetWeeks01,Contification Using Dominators>>. The
20 intermediate language described in that paper has since evolved to the
21 <<SSA#>> <<IntermediateLanguage#>>; hence, the complication described in
22 Section 6.1 is no longer relevant.