public class SSA
extends java.lang.Object
The SSA algorithm is from:
R. Cytron, J. Ferrante J, B. K. Rosen, M. N. Wegman, and F. K. Zadeck,
"Efficiently Computing Static Single Assignment Form and the Control
Dependence Graph", TOPLAS, 13(4): 451-490, October 1991.
I made modifications to the algorithm to compute FUD chains and to run the algorithm separately for each variable similar to the SSAPRE algorithm. Making a separate pass for each variable allows variables to be added incrementally.
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
| Constructor and Description |
|---|
SSA() |
| Modifier and Type | Method and Description |
|---|---|
static void |
transform(FlowGraph cfg)
Transforms a control flow graph into Single Static Assignment (SSA) form.
|
static void |
transform(FlowGraph cfg,
SSAConstructionInfo info)
Performs the actions necessary to convert a CFG into SSA form with
respect to one variable.
|
public static void transform(FlowGraph cfg)
transform(FlowGraph),
SSAConstructionInfopublic static void transform(FlowGraph cfg, SSAConstructionInfo info)