Mercurial > hg > graal-compiler
diff graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java @ 2850:7474789a8120
Merge
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Tue, 07 Jun 2011 11:19:01 +0200 |
parents | caf55daa41dc 7596ae867a7b |
children | 14708c03abba |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java Tue Jun 07 11:18:18 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java Tue Jun 07 11:19:01 2011 +0200 @@ -131,15 +131,11 @@ @Override public String shortName() { StringBuilder str = new StringBuilder(); - for (int i = 1; i < inputs().size(); ++i) { - if (i != 1) { + for (int i = 0; i < valueCount(); ++i) { + if (i != 0) { str.append(' '); } - if (inputs().get(i) != null) { - str.append(inputs().get(i).id()); - } else { - str.append("-"); - } + str.append(valueAt(i) == null ? "-" : valueAt(i).id()); } return "Phi: (" + str + ")"; }