changeset 6397:b30dde62f44c

small fix to partial escape analysis
author Lukas Stadler <lukas.stadler@jku.at>
date Fri, 14 Sep 2012 10:03:38 +0200
parents 2ba1f4cdecd0
children bced4f3a4174
files graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/ea/PartialEscapeAnalysisPhase.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/ea/PartialEscapeAnalysisPhase.java	Thu Sep 13 18:17:05 2012 +0200
+++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/ea/PartialEscapeAnalysisPhase.java	Fri Sep 14 10:03:38 2012 +0200
@@ -713,6 +713,7 @@
                     graph.replaceFixedWithFloating(x, ConstantNode.forInt(((ArrayEscapeRecord) obj.record).length, graph));
                     metricOtherRemoved.increment();
                 }
+                changed = true;
                 usageFound = true;
             } else if (node instanceof ReadHubNode) {
                 ReadHubNode x = (ReadHubNode) node;
@@ -723,6 +724,7 @@
                     graph.replaceFixedWithFloating(x, hub);
                     metricOtherRemoved.increment();
                 }
+                changed = true;
                 usageFound = true;
             } else if (node instanceof ReturnNode) {
                 ReturnNode x = (ReturnNode) node;