changeset 14009:384d7fc0e27b

Ignore reinterpret in backend if the new Stamp has the same PlatformKind.
author Roland Schatz <roland.schatz@oracle.com>
date Mon, 24 Feb 2014 11:37:48 +0100
parents 1658d30cd273
children c7c9624f8ca2
files graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java	Mon Feb 24 11:15:27 2014 +0100
+++ b/graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java	Mon Feb 24 11:37:48 2014 +0100
@@ -727,10 +727,13 @@
     }
 
     @Override
-    public AllocatableValue emitReinterpret(PlatformKind to, Value inputVal) {
+    public Value emitReinterpret(PlatformKind to, Value inputVal) {
         Kind from = inputVal.getKind();
+        if (to == from) {
+            return inputVal;
+        }
+
         AllocatableValue input = asAllocatable(inputVal);
-
         /*
          * Conversions between integer to floating point types require moves between CPU and FPU
          * registers.