changeset 14038:af0519781660

Use correct stamp in BitLogicNode smart constructors.
author Roland Schatz <roland.schatz@oracle.com>
date Fri, 28 Feb 2014 13:51:50 +0100
parents ffc6847d87c6
children 692452c4cfb6
files graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/BitLogicNode.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/BitLogicNode.java	Thu Feb 27 17:11:28 2014 -0800
+++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/BitLogicNode.java	Fri Feb 28 13:51:50 2014 +0100
@@ -44,16 +44,16 @@
 
     public static BitLogicNode and(StructuredGraph graph, ValueNode v1, ValueNode v2) {
         assert v1.stamp().isCompatible(v2.stamp());
-        return graph.unique(new AndNode(v1.stamp(), v1, v2));
+        return graph.unique(new AndNode(StampTool.and(v1.stamp(), v2.stamp()), v1, v2));
     }
 
     public static BitLogicNode or(StructuredGraph graph, ValueNode v1, ValueNode v2) {
         assert v1.stamp().isCompatible(v2.stamp());
-        return graph.unique(new OrNode(v1.stamp(), v1, v2));
+        return graph.unique(new OrNode(StampTool.or(v1.stamp(), v2.stamp()), v1, v2));
     }
 
     public static BitLogicNode xor(StructuredGraph graph, ValueNode v1, ValueNode v2) {
         assert v1.stamp().isCompatible(v2.stamp());
-        return graph.unique(new XorNode(v1.stamp(), v1, v2));
+        return graph.unique(new XorNode(StampTool.xor(v1.stamp(), v2.stamp()), v1, v2));
     }
 }