diff graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java @ 2799:e1dad0edd57a

first part of loop reworking
author Lukas Stadler <lukas.stadler@jku.at>
date Fri, 27 May 2011 17:48:28 +0200
parents d3fc4fe063bf
children c3f64b66fc78
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java	Fri May 27 14:20:30 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java	Fri May 27 17:48:28 2011 +0200
@@ -120,7 +120,18 @@
 
     @Override
     public String shortName() {
-        return "Phi: (" + valueCount() + ")";
+        StringBuilder str = new StringBuilder();
+        for (int i = 1; i < inputs().size(); ++i) {
+            if (i != 1) {
+                str.append(' ');
+            }
+            if (inputs().get(i) != null) {
+                str.append(inputs().get(i).id());
+            } else {
+                str.append("-");
+            }
+        }
+        return "Phi: (" + str + ")";
     }
 
     public Phi addInput(Node y) {