| java.lang.Object EDU.purdue.cs.bloat.trans.ValueFolding
ValueFolding | public class ValueFolding (Code) | | ValueFolding uses a ValueFolder to determine which
nodes in an expression tree can be removed or replaced by common expression
elimination and constant propagation.
See Also: ValueFolder |
Method Summary | |
boolean | fold(Map map, Node sccNode) Builds a mapping between the nodes in a CFG's SCCs and the expressions
they are equivalent to. | public void | transform(FlowGraph cfg) |
DEBUG | public static boolean DEBUG(Code) | | |
DUMP | public static boolean DUMP(Code) | | |
SAVEDUMP | public static boolean SAVEDUMP(Code) | | |
next | int next(Code) | | Performs value folding (common expression elimination and constant
folding) on a control flow graph.
|
fold | boolean fold(Map map, Node sccNode)(Code) | | Builds a mapping between the nodes in a CFG's SCCs and the expressions
they are equivalent to.
Parameters: map - A mapping between the SCCs of the CFG's SSA Graph(definitions) and the expressions they are folded to Parameters: sccNode - A Node in the SCC of the SSA Graph True, if the value in the mapping was changed. |
|
|