| 1 |
= RSSAShrink |
| 2 |
|
| 3 |
<<RSSAShrink#>> is an optimization pass for the <<RSSA#>> |
| 4 |
<<IntermediateLanguage#>>. |
| 5 |
|
| 6 |
== Description |
| 7 |
|
| 8 |
This pass implements a whole family of compile-time reductions, like: |
| 9 |
|
| 10 |
* constant folding, copy propagation |
| 11 |
* inline the `Goto` to a block with a unique predecessor |
| 12 |
* eliminate blocks that simply pass arguments to another block (e.g., jump chaining) |
| 13 |
|
| 14 |
== Implementation |
| 15 |
|
| 16 |
* https://github.com/MLton/mlton/blob/master/mlton/backend/rssa.fun[`rssa.fun`] |
| 17 |
|
| 18 |
== Details and Notes |
| 19 |
|
| 20 |
{empty} |