4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
6 <title>ConstantPropagation</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>
26 <h1>ConstantPropagation</h1>
30 <div class="sectionbody">
31 <div class="paragraph"><p><a href="ConstantPropagation">ConstantPropagation</a> is an optimization pass for the <a href="SSA">SSA</a>
32 <a href="IntermediateLanguage">IntermediateLanguage</a>, invoked from <a href="SSASimplify">SSASimplify</a>.</p></div>
36 <h2 id="_description">Description</h2>
37 <div class="sectionbody">
38 <div class="paragraph"><p>This is whole-program constant propagation, even through data
39 structures. It also performs globalization of (small) values computed
41 <div class="paragraph"><p>Uses <a href="Multi">Multi</a>.</p></div>
45 <h2 id="_implementation">Implementation</h2>
46 <div class="sectionbody">
47 <div class="ulist"><ul>
50 <a href="https://github.com/MLton/mlton/blob/master/mlton/ssa/constant-propagation.fun"><span class="monospaced">constant-propagation.fun</span></a>
57 <h2 id="_details_and_notes">Details and Notes</h2>
58 <div class="sectionbody">
59 <div class="paragraph"><p></p></div>
63 <div id="footnotes"><hr></div>
65 <div id="footer-text">
67 <div id="footer-badges">