4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
6 <title>LocalFlatten</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><a href="LocalFlatten">LocalFlatten</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 pass flattens arguments to <a href="SSA">SSA</a> blocks.</p></div>
39 <div class="paragraph"><p>A block argument is flattened as long as it only flows to selects and
40 there is some tuple constructed in this function that flows to it.</p></div>
44 <h2 id="_implementation">Implementation</h2>
45 <div class="sectionbody">
46 <div class="ulist"><ul>
49 <a href="https://github.com/MLton/mlton/blob/master/mlton/ssa/local-flatten.fun"><span class="monospaced">local-flatten.fun</span></a>
56 <h2 id="_details_and_notes">Details and Notes</h2>
57 <div class="sectionbody">
58 <div class="paragraph"><p></p></div>
62 <div id="footnotes"><hr></div>
64 <div id="footer-text">
66 <div id="footer-badges">