# HG changeset patch # User Lukas Stadler # Date 1374145176 -7200 # Node ID 32d93a799694ef6da7e03ba6f17bcce64dcd4bf5 # Parent 4532725151cc7e364dc5d0ffe0e5ba1fbe3e3f3f remove obsolete code from ValueAnchorNode diff -r 4532725151cc -r 32d93a799694 graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/ValueAnchorNode.java --- 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