Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java @ 2842:7596ae867a7b
basic inlining passes all tests, including optimistic inlining
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Wed, 01 Jun 2011 16:26:17 +0200 |
parents | bd17ac598c6e |
children | 7474789a8120 7f14e6b48a9c |
comparison
equal
deleted
inserted
replaced
2841:633e66de40fe | 2842:7596ae867a7b |
---|---|
129 } | 129 } |
130 | 130 |
131 @Override | 131 @Override |
132 public String shortName() { | 132 public String shortName() { |
133 StringBuilder str = new StringBuilder(); | 133 StringBuilder str = new StringBuilder(); |
134 for (int i = 1; i < inputs().size(); ++i) { | 134 for (int i = 0; i < valueCount(); ++i) { |
135 if (i != 1) { | 135 if (i != 0) { |
136 str.append(' '); | 136 str.append(' '); |
137 } | 137 } |
138 if (inputs().get(i) != null) { | 138 str.append(valueAt(i) == null ? "-" : valueAt(i).id()); |
139 str.append(inputs().get(i).id()); | |
140 } else { | |
141 str.append("-"); | |
142 } | |
143 } | 139 } |
144 return "Phi: (" + str + ")"; | 140 return "Phi: (" + str + ")"; |
145 } | 141 } |
146 | 142 |
147 public Phi addInput(Node y) { | 143 public Phi addInput(Node y) { |