# HG changeset patch # User Roland Schatz # Date 1393238268 -3600 # Node ID 384d7fc0e27b6d4b19f731e5f356c5df6b82374f # Parent 1658d30cd273bda2866dec0249e26780eaa23d21 Ignore reinterpret in backend if the new Stamp has the same PlatformKind. diff -r 1658d30cd273 -r 384d7fc0e27b graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java --- 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.