changeset 10804:32d93a799694

remove obsolete code from ValueAnchorNode
author Lukas Stadler <lukas.stadler@jku.at>
date Thu, 18 Jul 2013 12:59:36 +0200
parents 4532725151cc
children 842166781ddb
files graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/ValueAnchorNode.java
diffstat 1 files changed, 2 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/ValueAnchorNode.java	Thu Jul 18 12:04:09 2013 +0200
+++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/ValueAnchorNode.java	Thu Jul 18 12:59:36 2013 +0200
@@ -81,20 +81,9 @@
             }
         }
         for (Node node : anchored.nonNull().and(isNotA(FixedNode.class))) {
-            if (node instanceof ConstantNode) {
-                continue;
+            if (!(node instanceof ConstantNode)) {
+                return this; // still necessary
             }
-            if (node instanceof IntegerDivNode || node instanceof IntegerRemNode) {
-                ArithmeticNode arithmeticNode = (ArithmeticNode) node;
-                if (arithmeticNode.y().isConstant()) {
-                    Constant constant = arithmeticNode.y().asConstant();
-                    assert constant.getKind() == arithmeticNode.kind() : constant.getKind() + " != " + arithmeticNode.kind();
-                    if (constant.asLong() != 0) {
-                        continue;
-                    }
-                }
-            }
-            return this; // still necessary
         }
         if (usages().isEmpty()) {
             return null; // no node which require an anchor found