changeset 16247:b35b25c68387

returning null Canonicalizer.canonical replaces usages with null
author Lukas Stadler <lukas.stadler@oracle.com>
date Thu, 26 Jun 2014 16:27:35 +0200
parents 0815ca9d7747
children c5b2a3c22318
files graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/CanonicalizerPhase.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/CanonicalizerPhase.java	Thu Jun 26 16:27:35 2014 +0200
+++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/CanonicalizerPhase.java	Thu Jun 26 16:27:35 2014 +0200
@@ -304,6 +304,7 @@
                 if (node instanceof FloatingNode) {
                     if (canonical == null) {
                         // case 1
+                        node.replaceAtUsages(null);
                         graph.removeFloating((FloatingNode) node);
                     } else {
                         // case 2
@@ -328,6 +329,7 @@
                         tool.addToWorkList(fixedWithNext.next());
                         if (canonical == null) {
                             // case 3
+                            node.replaceAtUsages(null);
                             graph.removeFixed(fixedWithNext);
                         } else if (canonical instanceof FloatingNode) {
                             // case 4