# HG changeset patch # User Josef Eisl # Date 1437744255 -7200 # Node ID 05612742baa8eec90956978a00062446b5d52d53 # Parent 610c1d8cec4db0cda3d681ff23a5bde371aa7448 MoveProfiling: add support for stack to stack moves. diff -r 610c1d8cec4d -r 05612742baa8 graal/com.oracle.graal.lir/src/com/oracle/graal/lir/profiling/MoveProfiling.java --- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/profiling/MoveProfiling.java Fri Jul 24 14:53:09 2015 +0200 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/profiling/MoveProfiling.java Fri Jul 24 15:24:15 2015 +0200 @@ -51,7 +51,8 @@ STACK2REG("Reg", "Stack"), CONST2REG("Reg", "Const"), REG2STACK("Stack", "Reg"), - CONST2STACK("Stack", "Const"); + CONST2STACK("Stack", "Const"), + STACK2STACK("Stack", "Stack"); private final String name; @@ -84,6 +85,9 @@ if (isConstant(src)) { return CONST2STACK; } + if (isStackSlot(src)) { + return STACK2STACK; + } } throw JVMCIError.shouldNotReachHere(String.format("Unrecognized Move: %s dst=%s, src=%s", move, dst, src)); }