Mercurial > hg > truffle
diff graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java @ 14949:b65036798097
Remove visitReturn from NodeLIRBuilder.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Wed, 02 Apr 2014 16:52:47 +0200 |
parents | fbae9be45c95 |
children | e4a5b8904695 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java Wed Apr 02 10:08:00 2014 +0200 +++ b/graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java Wed Apr 02 16:52:47 2014 +0200 @@ -219,7 +219,12 @@ @Override public void emitReturn(Value input) { - append(new ReturnOp(input)); + AllocatableValue operand = Value.ILLEGAL; + if (input != null) { + operand = resultOperandFor(input.getKind()); + emitMove(operand, input); + } + append(new ReturnOp(operand)); } @Override @@ -297,7 +302,7 @@ /** * This method emits the compare instruction, and may reorder the operands. It returns true if * it did so. - * + * * @param a the left operand of the comparison * @param b the right operand of the comparison * @return true if the left and right operands were switched, false otherwise