comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/IntegerDivNode.java @ 19543:353669a84287

Utilities Node#acceptInputs and Node#acceptSuccessors.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 22 Feb 2015 23:44:37 +0100
parents 8fc336a04d77
children 3bf051bb2691
comparison
equal deleted inserted replaced
19542:f98e2f0c35d8 19543:353669a84287
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.graal.nodes.calc; 23 package com.oracle.graal.nodes.calc;
24
25 import static com.oracle.graal.graph.Edges.Type.*;
26 24
27 import com.oracle.graal.api.code.*; 25 import com.oracle.graal.api.code.*;
28 import com.oracle.graal.compiler.common.type.*; 26 import com.oracle.graal.compiler.common.type.*;
29 import com.oracle.graal.graph.*; 27 import com.oracle.graal.graph.*;
30 import com.oracle.graal.graph.spi.*; 28 import com.oracle.graal.graph.spi.*;
94 } 92 }
95 } 93 }
96 94
97 if (next() instanceof IntegerDivNode) { 95 if (next() instanceof IntegerDivNode) {
98 NodeClass<?> nodeClass = getNodeClass(); 96 NodeClass<?> nodeClass = getNodeClass();
99 if (next().getClass() == this.getClass() && nodeClass.getEdges(Inputs).areEqualIn(this, next()) && valueEquals(next())) { 97 if (next().getClass() == this.getClass() && nodeClass.getInputEdges().areEqualIn(this, next()) && valueEquals(next())) {
100 return next(); 98 return next();
101 } 99 }
102 } 100 }
103 101
104 return this; 102 return this;