comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/util/GraphUtil.java @ 11879:7e57add9c0d5

broadened types in SimplifierTool interface so that it can be moved to the com.oracle.graal.graph project (GRAAL-506)
author Doug Simon <doug.simon@oracle.com>
date Tue, 01 Oct 2013 20:30:04 +0200
parents c483912aaf70
children af39ea2dc39d
comparison
equal deleted inserted replaced
11849:73a2f5fc8625 11879:7e57add9c0d5
41 // isA(FloatingNode.class).or(VirtualState.class).or(CallTargetNode.class) 41 // isA(FloatingNode.class).or(VirtualState.class).or(CallTargetNode.class)
42 return n instanceof FloatingNode || n instanceof VirtualState || n instanceof CallTargetNode; 42 return n instanceof FloatingNode || n instanceof VirtualState || n instanceof CallTargetNode;
43 } 43 }
44 }; 44 };
45 45
46 public static void killCFG(FixedNode node) { 46 public static void killCFG(Node node) {
47 assert node.isAlive(); 47 assert node.isAlive();
48 if (node instanceof AbstractEndNode) { 48 if (node instanceof AbstractEndNode) {
49 // We reached a control flow end. 49 // We reached a control flow end.
50 AbstractEndNode end = (AbstractEndNode) node; 50 AbstractEndNode end = (AbstractEndNode) node;
51 killEnd(end); 51 killEnd(end);
56 * modifications as long as they do not change the size of the successor list. Not 56 * modifications as long as they do not change the size of the successor list. Not
57 * taking a snapshot allows us to see modifications to other branches that may happen 57 * taking a snapshot allows us to see modifications to other branches that may happen
58 * while processing one branch. 58 * while processing one branch.
59 */ 59 */
60 for (Node successor : node.successors()) { 60 for (Node successor : node.successors()) {
61 killCFG((FixedNode) successor); 61 killCFG(successor);
62 } 62 }
63 } 63 }
64 propagateKill(node); 64 propagateKill(node);
65 } 65 }
66 66