4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
6 <title>SSA2Simplify</title>
7 <link rel="stylesheet" href="./asciidoc.css" type="text/css">
8 <link rel="stylesheet" href="./pygments.css" type="text/css">
11 <script type="text/javascript" src="./asciidoc.js"></script>
12 <script type="text/javascript">
17 <link rel="stylesheet" href="./mlton.css" type="text/css">
19 <body class="article">
21 <div id="banner-home">
22 <a href="./Home">MLton 20180207</a>
30 <div class="sectionbody">
31 <div class="paragraph"><p>The optimization passes for the <a href="SSA2">SSA2</a> <a href="IntermediateLanguage">IntermediateLanguage</a> are
32 collected and controlled by the <span class="monospaced">Simplify2</span> functor
33 (<a href="https://github.com/MLton/mlton/blob/master/mlton/ssa/simplify2.sig"><span class="monospaced">simplify2.sig</span></a>,
34 <a href="https://github.com/MLton/mlton/blob/master/mlton/ssa/simplify2.fun"><span class="monospaced">simplify2.fun</span></a>).</p></div>
35 <div class="paragraph"><p>The following optimization passes are implemented:</p></div>
36 <div class="ulist"><ul>
39 <a href="DeepFlatten">DeepFlatten</a>
44 <a href="RefFlatten">RefFlatten</a>
49 <a href="RemoveUnused">RemoveUnused</a>
54 <a href="Zone">Zone</a>
58 <div class="paragraph"><p>There are additional analysis and rewrite passes that augment many of the other optimization passes:</p></div>
59 <div class="ulist"><ul>
62 <a href="Restore">Restore</a>
67 <a href="Shrink">Shrink</a>
71 <div class="paragraph"><p>The optimization passes can be controlled from the command-line by the options</p></div>
72 <div class="ulist"><ul>
75 <span class="monospaced">-diag-pass <pass></span> — keep diagnostic info for pass
80 <span class="monospaced">-disable-pass <pass></span> — skip optimization pass (if normally performed)
85 <span class="monospaced">-enable-pass <pass></span> — perform optimization pass (if normally skipped)
90 <span class="monospaced">-keep-pass <pass></span> — keep the results of pass
95 <span class="monospaced">-loop-passes <n></span> — loop optimization passes
100 <span class="monospaced">-ssa2-passes <passes></span> — ssa optimization passes
107 <div id="footnotes"><hr></div>
109 <div id="footer-text">
111 <div id="footer-badges">