comparison graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/ConditionalEliminationPhase.java @ 7530:5e3d1a68664e

applied mx eclipseformat to all Java files
author Doug Simon <doug.simon@oracle.com>
date Wed, 23 Jan 2013 16:34:57 +0100
parents b1ebd583be14
children 9ea26951d826
comparison
equal deleted inserted replaced
7529:4a11124a3563 7530:5e3d1a68664e
160 if (guard != null) { 160 if (guard != null) {
161 newFalseConditions.put(check, guard); 161 newFalseConditions.put(check, guard);
162 } 162 }
163 } 163 }
164 164
165 // this piece of code handles phis (merges the types and knownNull/knownNotNull of the values) 165 // this piece of code handles phis (merges the types and knownNull/knownNotNull of the
166 // values)
166 if (!(merge instanceof LoopBeginNode)) { 167 if (!(merge instanceof LoopBeginNode)) {
167 for (PhiNode phi : merge.phis()) { 168 for (PhiNode phi : merge.phis()) {
168 if (phi.type() == PhiType.Value && phi.kind() == Kind.Object) { 169 if (phi.type() == PhiType.Value && phi.kind() == Kind.Object) {
169 ValueNode firstValue = phi.valueAt(0); 170 ValueNode firstValue = phi.valueAt(0);
170 ResolvedJavaType type = getNodeType(firstValue); 171 ResolvedJavaType type = getNodeType(firstValue);
248 return a; 249 return a;
249 } 250 }
250 } 251 }
251 252
252 public class ConditionalElimination extends PostOrderNodeIterator<State> { 253 public class ConditionalElimination extends PostOrderNodeIterator<State> {
254
253 private BeginNode lastBegin = null; 255 private BeginNode lastBegin = null;
254 256
255 public ConditionalElimination(FixedNode start, State initialState) { 257 public ConditionalElimination(FixedNode start, State initialState) {
256 super(start, initialState); 258 super(start, initialState);
257 } 259 }