| Modifier and Type | Field | Description |
|---|---|---|
static boolean |
DEBUG |
| Constructor | Description |
|---|---|
DominatorTree() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
buildTree(FlowGraph graph,
boolean reverse) |
Calculates what vertices dominate other verices and notify the basic
Blocks as to who their dominator is.
|
public static void buildTree(FlowGraph graph, boolean reverse)
graph - The cfg that is used to find the dominator tree.reverse - Do we go in revsers? That is, are we computing the dominatance
(false) or postdominance (true) tree.Block