| 1 |
= SplitTypes |
| 2 |
|
| 3 |
<<SplitTypes#>> is an optimization pass for the <<SSA#>> <<IntermediateLanguage#>>, |
| 4 |
invoked from <<SSASimplify#>>. |
| 5 |
|
| 6 |
== Description |
| 7 |
|
| 8 |
<<SplitTypes#>> performs a unification-based analysis to split a datatype into |
| 9 |
distinct instances for constructed values that are not unified. Because |
| 10 |
datatypes are recursive, other analyses often conflate all defs and uses of |
| 11 |
`ConApp`-s; `SplitTypes` allows non-unified instances of a datatype to be |
| 12 |
analyzed separately. |
| 13 |
|
| 14 |
== Implementation |
| 15 |
|
| 16 |
* https://github.com/MLton/mlton/blob/master/mlton/ssa/split-types.fun[`split-types.fun`] |
| 17 |
|
| 18 |
== Details and Notes |
| 19 |
|
| 20 |
{empty} |