< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/calc/NegateNode.java
Print this page
rev 52509 : [mq]: graal
@@ -69,10 +69,12 @@
return this;
}
protected static ValueNode findSynonym(ValueNode forValue, NodeView view) {
ArithmeticOpTable.UnaryOp<Neg> negOp = ArithmeticOpTable.forStamp(forValue.stamp(view)).getNeg();
+
+ // Folds constants
ValueNode synonym = UnaryArithmeticNode.findSynonym(forValue, negOp);
if (synonym != null) {
return synonym;
}
if (forValue instanceof NegateNode) {
< prev index next >