| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectscale.score.trans.Optimization
scale.score.trans.PRE
public class PRE
Perform the Partial Redundancy Elimination optimization.
$Id: PRE.java,v 1.90 2007-10-04 19:58:37 burrill Exp $
 Copyright 2008 by the
 Scale Compiler Group, 
 The algorithm is based Fred Chow's PLDI paper,
 "A New Algorithm for Partial Redundancy Elimination based on SSA Form".
 
 
 Department of Computer Science
 University of Massachusetts
 Amherst MA. 01003, USA
 All Rights Reserved.
 
| Field Summary | |
|---|---|
| static boolean | classTraceTrue if traces are to be performed. | 
| static boolean | useHeuristicsIf true, use heuristics that prune the cases where the optimization is applied. | 
| Fields inherited from class scale.score.trans.Optimization | 
|---|
| dChanged, fpReorder, hasDummyAliases, IN_SSA, minimumExecutionCost, NA_SSA, NO_SSA, rChanged, scribble, signedIntsWrapOnOverflow, trace, un, unsafe, unsignedIntsWrapOnOverflow, VALID_SSA | 
| Constructor Summary | |
|---|---|
| PRE(Scribble scribble) | |
| Method Summary | |
|---|---|
| static int | deadCFGNodes()Return the number of dead nodes removed. | 
| static int | newCFGNodes()Return the number of new nodes created. | 
|  void | perform()Perform PRE on the SSA form of a Scribble graph. | 
| static int | removedOperations()Return the number of operations removed. | 
| Methods inherited from class scale.score.trans.Optimization | 
|---|
| assertTrace, assertTrace, assertTrace, assertTrace, assertTrace, genTemp, insertStores, requiresSSA, setTrace, sort | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static boolean classTrace
public static boolean useHeuristics
| Constructor Detail | 
|---|
public PRE(Scribble scribble)
scribble - is the Scribble CFG in SSA form| Method Detail | 
|---|
public static int deadCFGNodes()
public static int newCFGNodes()
public static int removedOperations()
public void perform()
perform in class Optimization| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||