changeset 16129:9410f831fefa

don't create profiles for exact types
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Tue, 17 Jun 2014 13:24:25 -0700
parents 66e3fc56e85f
children a4a2147a6aa6
files graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/TypeProfileProxyNode.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/TypeProfileProxyNode.java	Tue Jun 17 13:24:20 2014 -0700
+++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/TypeProfileProxyNode.java	Tue Jun 17 13:24:25 2014 -0700
@@ -47,6 +47,9 @@
     }
 
     public static ValueNode create(ValueNode object, JavaTypeProfile profile) {
+        if (StampTool.isExactType(object)) {
+            return object;
+        }
         if (profile == null) {
             // No profile, so create no node.
             return object;