changeset 21193:8d868b026691

LinearScan: improve assert messages.
author Josef Eisl <josef.eisl@jku.at>
date Tue, 28 Apr 2015 11:56:00 +0200
parents 4c7c22aa4bd7
children 5557f74bfd30
files graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/lsra/LinearScan.java graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/PhiResolver.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/lsra/LinearScan.java	Wed Apr 22 10:50:36 2015 +0200
+++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/lsra/LinearScan.java	Tue Apr 28 11:56:00 2015 +0200
@@ -686,7 +686,7 @@
 
         // iterate all blocks
         for (final AbstractBlockBase<?> block : sortedBlocks) {
-            try (Indent indent = Debug.logAndIndent("compute local live sets for block %d", block.getId())) {
+            try (Indent indent = Debug.logAndIndent("compute local live sets for block %s", block)) {
 
                 final BitSet liveGen = new BitSet(liveSize);
                 final BitSet liveKill = new BitSet(liveSize);
@@ -700,7 +700,7 @@
                         if (!liveKill.get(operandNum)) {
                             liveGen.set(operandNum);
                             if (Debug.isLogEnabled()) {
-                                Debug.log("liveGen for operand %d", operandNum);
+                                Debug.log("liveGen for operand %d(%s)", operandNum, operand);
                             }
                         }
                         if (block.getLoop() != null) {
@@ -718,7 +718,7 @@
                         if (!liveKill.get(operandNum)) {
                             liveGen.set(operandNum);
                             if (Debug.isLogEnabled()) {
-                                Debug.log("liveGen in state for operand %d", operandNum);
+                                Debug.log("liveGen in state for operand %d(%s)", operandNum, operand);
                             }
                         }
                     }
@@ -728,7 +728,7 @@
                         int varNum = operandNumber(operand);
                         liveKill.set(varNum);
                         if (Debug.isLogEnabled()) {
-                            Debug.log("liveKill for operand %d", varNum);
+                            Debug.log("liveKill for operand %d(%s)", varNum, operand);
                         }
                         if (block.getLoop() != null) {
                             intervalInLoop.setBit(varNum, block.getLoop().getIndex());