changeset 19193:e7451826b8c0

Don't use to ArithmethicOpTable.toString for equality comparisons
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Mon, 09 Feb 2015 16:03:00 -0800
parents a7fb05f3d7e1
children 0678ce28de69
files graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/BinaryArithmeticNode.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/BinaryArithmeticNode.java	Mon Feb 09 16:00:00 2015 -0800
+++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/BinaryArithmeticNode.java	Mon Feb 09 16:03:00 2015 -0800
@@ -51,7 +51,7 @@
 
     protected final BinaryOp<OP> getOp(ValueNode forX, ValueNode forY) {
         ArithmeticOpTable table = ArithmeticOpTable.forStamp(forX.stamp());
-        assert table.toString().equals(ArithmeticOpTable.forStamp(forY.stamp()).toString());
+        assert table.equals(ArithmeticOpTable.forStamp(forY.stamp()));
         return getOp.apply(table);
     }