| 1 |
= RSSASimplify |
| 2 |
|
| 3 |
The optimization passes for the <<RSSA#>> <<IntermediateLanguage#>> are |
| 4 |
collected and controlled by the `Backend` functor |
| 5 |
(https://github.com/MLton/mlton/blob/master/mlton/backend/backend.sig[`backend.sig`], |
| 6 |
https://github.com/MLton/mlton/blob/master/mlton/backend/backend.fun[`backend.fun`]). |
| 7 |
|
| 8 |
The following optimization pass is implemented: |
| 9 |
|
| 10 |
* <<BounceVars#>> |
| 11 |
* <<CollectStatics#>> |
| 12 |
* <<RSSAShrink#>> |
| 13 |
|
| 14 |
The following implementation passes are implemented: |
| 15 |
|
| 16 |
* <<ImplementHandlers#>> |
| 17 |
* <<ImplementProfiling#>> |
| 18 |
* <<InsertLimitChecks#>> |
| 19 |
* <<InsertSignalChecks#>> |
| 20 |
|
| 21 |
The optimization passes can be controlled from the command-line by the options |
| 22 |
|
| 23 |
* `-diag-pass <pass>` -- keep diagnostic info for pass |
| 24 |
* `-disable-pass <pass>` -- skip optimization pass (if normally performed) |
| 25 |
* `-enable-pass <pass>` -- perform optimization pass (if normally skipped) |
| 26 |
* `-keep-pass <pass>` -- keep the results of pass |