# HG changeset patch # User Tom Rodriguez # Date 1406580746 25200 # Node ID 07de1d5d53ef123ddb4659d6c671a9a3cd37e3c1 # Parent 7036c4594919b598956b17c737c344b797b96f3e make scheduling before dumping optional to speed up dumping diff -r 7036c4594919 -r 07de1d5d53ef graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/GraalOptions.java --- a/graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/GraalOptions.java Mon Jul 28 13:51:36 2014 -0700 +++ b/graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/GraalOptions.java Mon Jul 28 13:52:26 2014 -0700 @@ -150,6 +150,8 @@ public static final OptionValue PrintIdealGraphPort = new OptionValue<>(4444); @Option(help = "") public static final OptionValue PrintBinaryGraphPort = new OptionValue<>(4445); + @Option(help = "") + public static final OptionValue PrintIdealGraphSchedule = new OptionValue<>(false); // Other printing settings @Option(help = "") diff -r 7036c4594919 -r 07de1d5d53ef graal/com.oracle.graal.printer/src/com/oracle/graal/printer/BinaryGraphPrinter.java --- a/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/BinaryGraphPrinter.java Mon Jul 28 13:51:36 2014 -0700 +++ b/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/BinaryGraphPrinter.java Mon Jul 28 13:52:26 2014 -0700 @@ -129,10 +129,12 @@ private void writeGraph(Graph graph, SchedulePhase predefinedSchedule) throws IOException { SchedulePhase schedule = predefinedSchedule; if (schedule == null) { - try { - schedule = new SchedulePhase(); - schedule.apply((StructuredGraph) graph); - } catch (Throwable t) { + if (PrintIdealGraphSchedule.getValue()) { + try { + schedule = new SchedulePhase(); + schedule.apply((StructuredGraph) graph); + } catch (Throwable t) { + } } } ControlFlowGraph cfg = schedule == null ? null : schedule.getCFG(); diff -r 7036c4594919 -r 07de1d5d53ef graal/com.oracle.graal.printer/src/com/oracle/graal/printer/IdealGraphPrinter.java --- a/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/IdealGraphPrinter.java Mon Jul 28 13:51:36 2014 -0700 +++ b/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/IdealGraphPrinter.java Mon Jul 28 13:52:26 2014 -0700 @@ -22,6 +22,8 @@ */ package com.oracle.graal.printer; +import static com.oracle.graal.compiler.common.GraalOptions.*; + import java.io.*; import java.util.*; import java.util.Map.Entry; @@ -87,10 +89,12 @@ Set noBlockNodes = new HashSet<>(); SchedulePhase schedule = predefinedSchedule; if (schedule == null && tryToSchedule) { - try { - schedule = new SchedulePhase(); - schedule.apply((StructuredGraph) graph); - } catch (Throwable t) { + if (PrintIdealGraphSchedule.getValue()) { + try { + schedule = new SchedulePhase(); + schedule.apply((StructuredGraph) graph); + } catch (Throwable t) { + } } } ControlFlowGraph cfg = schedule == null ? null : schedule.getCFG();