Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/value/FrameState.java @ 2808:189ffb7d1d84
enable PhiSimplifier, schedule values used in a merge's stateBefore in the dominator
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Mon, 30 May 2011 13:42:23 +0200 |
parents | c3f64b66fc78 |
children | bd17ac598c6e |
comparison
equal
deleted
inserted
replaced
2807:50b5db2c3e68 | 2808:189ffb7d1d84 |
---|---|
379 } | 379 } |
380 } | 380 } |
381 } | 381 } |
382 } | 382 } |
383 | 383 |
384 public Merge block() { | |
385 if (usages().size() > 0) { | |
386 assert usages().size() == 1; | |
387 Node node = usages().get(0); | |
388 if (node instanceof Merge) { | |
389 return (Merge) node; | |
390 } | |
391 } | |
392 return null; | |
393 } | |
384 | 394 |
385 /** | 395 /** |
386 * The interface implemented by a client of {@link FrameState#forEachPhi(Merge, PhiProcedure)} and | 396 * The interface implemented by a client of {@link FrameState#forEachPhi(Merge, PhiProcedure)} and |
387 * {@link FrameState#forEachLivePhi(Merge, PhiProcedure)}. | 397 * {@link FrameState#forEachLivePhi(Merge, PhiProcedure)}. |
388 */ | 398 */ |