# HG changeset patch # User Josef Eisl # Date 1423145476 -3600 # Node ID 7a300e47cec35db16b5eddec8118d190051de016 # Parent 3a2fce66fda0522ffdac7ba82a557d88210a751a [SPARC] TableSwitchOp: explicit Variable to Variable move. diff -r 3a2fce66fda0 -r 7a300e47cec3 graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java --- a/graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java Thu Feb 05 13:16:09 2015 +0100 +++ b/graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java Thu Feb 05 15:11:16 2015 +0100 @@ -415,7 +415,8 @@ protected void emitTableSwitch(int lowKey, LabelRef defaultTarget, LabelRef[] targets, Value key) { // Making a copy of the switch value is necessary because jump table destroys the input // value - Variable tmp = emitMove(key); + Variable tmp = newVariable(key.getLIRKind()); + emitMove(tmp, key); append(new TableSwitchOp(lowKey, defaultTarget, targets, tmp, newVariable(LIRKind.value(target().wordKind)))); }