| 1 |
= LocalFlatten |
| 2 |
|
| 3 |
<<LocalFlatten#>> is an optimization pass for the <<SSA#>> |
| 4 |
<<IntermediateLanguage#>>, invoked from <<SSASimplify#>>. |
| 5 |
|
| 6 |
== Description |
| 7 |
|
| 8 |
This pass flattens arguments to <<SSA#>> blocks. |
| 9 |
|
| 10 |
A block argument is flattened as long as it only flows to selects and |
| 11 |
there is some tuple constructed in this function that flows to it. |
| 12 |
|
| 13 |
== Implementation |
| 14 |
|
| 15 |
* https://github.com/MLton/mlton/blob/master/mlton/ssa/local-flatten.fun[`local-flatten.fun`] |
| 16 |
|
| 17 |
== Details and Notes |
| 18 |
|
| 19 |
{empty} |