changeset 22870:be773541ce54

Count input nodes before running a phase
author Gilles Duboscq <gilles.m.duboscq@oracle.com>
date Tue, 20 Oct 2015 14:16:21 +0200
parents d0000fb935b7
children 09d5bba0743e
files graal/com.oracle.graal.phases/src/com/oracle/graal/phases/BasePhase.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/BasePhase.java	Thu Oct 22 12:56:40 2015 +0200
+++ b/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/BasePhase.java	Tue Oct 20 14:16:21 2015 +0200
@@ -142,9 +142,9 @@
             if (dumpGraph && Debug.isDumpEnabled(BEFORE_PHASE_DUMP_LEVEL)) {
                 Debug.dump(BEFORE_PHASE_DUMP_LEVEL, graph, "Before phase %s", getName());
             }
+            inputNodesCount.add(graph.getNodeCount());
             this.run(graph, context);
             executionCount.increment();
-            inputNodesCount.add(graph.getNodeCount());
             if (dumpGraph && Debug.isDumpEnabled(PHASE_DUMP_LEVEL)) {
                 Debug.dump(PHASE_DUMP_LEVEL, graph, "%s", getName());
             }