# HG changeset patch # User Thomas Wuerthinger # Date 1306760584 -7200 # Node ID 6fb5a1bf819f5eef421ab17a4b3d863b307acf5d # Parent b003ea36fa12bad3151764439e7c395aa1e46815 Hide back edges from the output. diff -r b003ea36fa12 -r 6fb5a1bf819f graal/GraalCompiler/src/com/sun/c1x/debug/IdealGraphPrinter.java --- a/graal/GraalCompiler/src/com/sun/c1x/debug/IdealGraphPrinter.java Mon May 30 14:55:09 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/debug/IdealGraphPrinter.java Mon May 30 15:03:04 2011 +0200 @@ -28,6 +28,7 @@ import com.oracle.graal.graph.*; import com.oracle.max.graal.schedule.*; +import com.sun.c1x.ir.*; /** * Generates a representation of {@link Graph Graphs} that can be visualized and inspected with the %n", block.blockID()); stream.printf(" %n"); for (Block sux : block.getSuccessors()) { - stream.printf(" %n", sux.blockID()); + if (sux.firstNode() instanceof LoopBegin && block.lastNode() instanceof LoopEnd) { + // Skip back edges. + } else { + stream.printf(" %n", sux.blockID()); + } } stream.printf(" %n"); stream.printf(" %n");