use of org.graalvm.compiler.phases.graph.StatelessPostOrderNodeIterator in project graal by oracle.
the class GraphOrder method createOrder.
private static List<Node> createOrder(StructuredGraph graph) {
final ArrayList<Node> nodes = new ArrayList<>();
final NodeBitMap visited = graph.createNodeBitMap();
new StatelessPostOrderNodeIterator(graph.start()) {
@Override
protected void node(FixedNode node) {
visitForward(nodes, visited, node, false);
}
}.apply();
return nodes;
}
Aggregations