| 1 |
= ConstantPropagation |
| 2 |
|
| 3 |
<<ConstantPropagation#>> is an optimization pass for the <<SSA#>> |
| 4 |
<<IntermediateLanguage#>>, invoked from <<SSASimplify#>>. |
| 5 |
|
| 6 |
== Description |
| 7 |
|
| 8 |
This is whole-program constant propagation, even through data |
| 9 |
structures. It also performs globalization of (small) values computed |
| 10 |
once. |
| 11 |
|
| 12 |
Uses <<Multi#>>. |
| 13 |
|
| 14 |
== Implementation |
| 15 |
|
| 16 |
* https://github.com/MLton/mlton/blob/master/mlton/ssa/constant-propagation.fun[`constant-propagation.fun`] |
| 17 |
|
| 18 |
== Details and Notes |
| 19 |
|
| 20 |
{empty} |