# HG changeset patch # User Christian Wimmer # Date 1325644613 28800 # Node ID 4e86f3befd6547b8f250c5d8415ddc86af2e27db # Parent 41b9ca06bcc81d1e433a0f9ca33fc78dc34cbe68 Improve debug printing diff -r 41b9ca06bcc8 -r 4e86f3befd65 graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/LIRInstruction.java --- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/LIRInstruction.java Tue Jan 03 18:35:37 2012 -0800 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/lir/LIRInstruction.java Tue Jan 03 18:36:53 2012 -0800 @@ -307,15 +307,21 @@ public String operationString() { StringBuilder buf = new StringBuilder(); String sep = ""; + if (outputs.length > 1) { + buf.append("("); + } for (CiValue output : outputs) { - buf.append(output); + buf.append(sep).append(output); sep = ", "; } + if (outputs.length > 1) { + buf.append(")"); + } if (outputs.length > 0) { buf.append(" = "); } - if (inputs.length + alives.length > 1) { + if (inputs.length + alives.length != 1) { buf.append("("); } sep = ""; @@ -327,7 +333,7 @@ buf.append(sep).append(input).append(" ~"); sep = ", "; } - if (inputs.length + alives.length > 1) { + if (inputs.length + alives.length != 1) { buf.append(")"); }