Commit | Line | Data |
---|---|---|
7f918cf1 CE |
1 | <!DOCTYPE html>\r |
2 | <html lang="en">\r | |
3 | <head>\r | |
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\r | |
5 | <meta name="generator" content="AsciiDoc 8.6.9">\r | |
6 | <title>RemoveUnused</title>\r | |
7 | <link rel="stylesheet" href="./asciidoc.css" type="text/css">\r | |
8 | <link rel="stylesheet" href="./pygments.css" type="text/css">\r | |
9 | \r | |
10 | \r | |
11 | <script type="text/javascript" src="./asciidoc.js"></script>\r | |
12 | <script type="text/javascript">\r | |
13 | /*<![CDATA[*/\r | |
14 | asciidoc.install();\r | |
15 | /*]]>*/\r | |
16 | </script>\r | |
17 | <link rel="stylesheet" href="./mlton.css" type="text/css">\r | |
18 | </head>\r | |
19 | <body class="article">\r | |
20 | <div id="banner">\r | |
21 | <div id="banner-home">\r | |
22 | <a href="./Home">MLton 20180207</a>\r | |
23 | </div>\r | |
24 | </div>\r | |
25 | <div id="header">\r | |
26 | <h1>RemoveUnused</h1>\r | |
27 | </div>\r | |
28 | <div id="content">\r | |
29 | <div id="preamble">\r | |
30 | <div class="sectionbody">\r | |
31 | <div class="paragraph"><p><a href="RemoveUnused">RemoveUnused</a> is an optimization pass for both the <a href="SSA">SSA</a> and\r | |
32 | <a href="SSA2">SSA2</a> <a href="IntermediateLanguage">IntermediateLanguage</a>s, invoked from <a href="SSASimplify">SSASimplify</a> and\r | |
33 | <a href="SSA2Simplify">SSA2Simplify</a>.</p></div>\r | |
34 | </div>\r | |
35 | </div>\r | |
36 | <div class="sect1">\r | |
37 | <h2 id="_description">Description</h2>\r | |
38 | <div class="sectionbody">\r | |
39 | <div class="paragraph"><p>This pass aggressively removes unused:</p></div>\r | |
40 | <div class="ulist"><ul>\r | |
41 | <li>\r | |
42 | <p>\r | |
43 | datatypes\r | |
44 | </p>\r | |
45 | </li>\r | |
46 | <li>\r | |
47 | <p>\r | |
48 | datatype constructors\r | |
49 | </p>\r | |
50 | </li>\r | |
51 | <li>\r | |
52 | <p>\r | |
53 | datatype constructor arguments\r | |
54 | </p>\r | |
55 | </li>\r | |
56 | <li>\r | |
57 | <p>\r | |
58 | functions\r | |
59 | </p>\r | |
60 | </li>\r | |
61 | <li>\r | |
62 | <p>\r | |
63 | function arguments\r | |
64 | </p>\r | |
65 | </li>\r | |
66 | <li>\r | |
67 | <p>\r | |
68 | function returns\r | |
69 | </p>\r | |
70 | </li>\r | |
71 | <li>\r | |
72 | <p>\r | |
73 | blocks\r | |
74 | </p>\r | |
75 | </li>\r | |
76 | <li>\r | |
77 | <p>\r | |
78 | block arguments\r | |
79 | </p>\r | |
80 | </li>\r | |
81 | <li>\r | |
82 | <p>\r | |
83 | statements (variable bindings)\r | |
84 | </p>\r | |
85 | </li>\r | |
86 | <li>\r | |
87 | <p>\r | |
88 | handlers from non-tail calls (mayRaise analysis)\r | |
89 | </p>\r | |
90 | </li>\r | |
91 | <li>\r | |
92 | <p>\r | |
93 | continuations from non-tail calls (mayReturn analysis)\r | |
94 | </p>\r | |
95 | </li>\r | |
96 | </ul></div>\r | |
97 | </div>\r | |
98 | </div>\r | |
99 | <div class="sect1">\r | |
100 | <h2 id="_implementation">Implementation</h2>\r | |
101 | <div class="sectionbody">\r | |
102 | <div class="ulist"><ul>\r | |
103 | <li>\r | |
104 | <p>\r | |
105 | <a href="https://github.com/MLton/mlton/blob/master/mlton/ssa/remove-unused.fun"><span class="monospaced">remove-unused.fun</span></a>\r | |
106 | </p>\r | |
107 | </li>\r | |
108 | <li>\r | |
109 | <p>\r | |
110 | <a href="https://github.com/MLton/mlton/blob/master/mlton/ssa/remove-unused2.fun"><span class="monospaced">remove-unused2.fun</span></a>\r | |
111 | </p>\r | |
112 | </li>\r | |
113 | </ul></div>\r | |
114 | </div>\r | |
115 | </div>\r | |
116 | <div class="sect1">\r | |
117 | <h2 id="_details_and_notes">Details and Notes</h2>\r | |
118 | <div class="sectionbody">\r | |
119 | <div class="paragraph"><p></p></div>\r | |
120 | </div>\r | |
121 | </div>\r | |
122 | </div>\r | |
123 | <div id="footnotes"><hr></div>\r | |
124 | <div id="footer">\r | |
125 | <div id="footer-text">\r | |
126 | </div>\r | |
127 | <div id="footer-badges">\r | |
128 | </div>\r | |
129 | </div>\r | |
130 | </body>\r | |
131 | </html>\r |