| 1 |
\section{SSA Optimizations}\label{sec:ssa} |
| 2 |
|
| 3 |
All SSA optimization modules satisfy the signature |
| 4 |
\mlrischref{SSA/ssa-optimization.sig}{SSA\_OPTIMIZATION}, |
| 5 |
which is defined as: |
| 6 |
\begin{SML} |
| 7 |
signature SSA_OPTIMIZATION = sig |
| 8 |
structure SSA : SSA |
| 9 |
|
| 10 |
val optimize : SSA.ssa -> SSA.ssa |
| 11 |
end |
| 12 |
\end{SML} |
| 13 |
|
| 14 |
The following SSA based scalar optimizations have been implemented in MLRISC. |
| 15 |
\begin{itemize} |
| 16 |
\item \mlrischref{SSA/ssa-dead-code-elim.sml}{Dead code elimination} |
| 17 |
\item \mlrischref{SSA/ssa-gvn.sml}{Global value numbering, constant folding, algebraic simplication} |
| 18 |
\item \mlrischref{SSA/ssa-gcm.sml}{Global code motion} |
| 19 |
\item \mlrischref{SSA/ssa-cond-const-prop.sml}{Conditional constant propagation} |
| 20 |
\item \mlrischref{SSA/ssa-op-str-red.sml}{Strength reduction} |
| 21 |
\end{itemize} |