changeset 19952:59c2d62927f7

Canonicalizer: tryCanonicalize: return early if the custom canonicalizer has simplified the node away
author Gilles Duboscq <gilles.m.duboscq@oracle.com>
date Thu, 19 Mar 2015 10:28:28 +0100
parents b94503d3840c
children 69215066602a 422e60a2f4b9
files graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/CanonicalizerPhase.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/CanonicalizerPhase.java	Wed Mar 18 21:01:56 2015 +0100
+++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/CanonicalizerPhase.java	Thu Mar 19 10:28:28 2015 +0100
@@ -249,6 +249,9 @@
                     return true;
                 } else {
                     customCanonicalizer.simplify(node, tool);
+                    if (node.isDeleted()) {
+                        return true;
+                    }
                 }
             }
             if (nodeClass.isCanonicalizable()) {