Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/gen/PhiSimplifier.java @ 2776:398b8fa5dc81
Removed stateAfter from BlockEnd class. Clean up.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Tue, 24 May 2011 13:55:56 +0200 |
parents | 3e3338a1abb9 |
children | 6d14aa4fbf90 |
comparison
equal
deleted
inserted
replaced
2775:3b73b230b86b | 2776:398b8fa5dc81 |
---|---|
29 /** | 29 /** |
30 * The {@code PhiSimplifier} class is a helper class that can reduce phi instructions. | 30 * The {@code PhiSimplifier} class is a helper class that can reduce phi instructions. |
31 */ | 31 */ |
32 public final class PhiSimplifier { | 32 public final class PhiSimplifier { |
33 | 33 |
34 public PhiSimplifier(IR ir) {/* | 34 public PhiSimplifier(IR ir) { |
35 for (Node n : ir.compilation.graph.getNodes()) { | 35 for (Node n : ir.compilation.graph.getNodes()) { |
36 if (n instanceof Phi) { | 36 if (n instanceof Phi) { |
37 simplify((Phi) n); | 37 simplify((Phi) n); |
38 } | 38 } |
39 }*/ | 39 } |
40 } | 40 } |
41 | 41 |
42 private Value simplify(Value x) { | 42 private Value simplify(Value x) { |
43 if (x == null || !(x instanceof Phi)) { | 43 if (x == null || !(x instanceof Phi)) { |
44 return x; | 44 return x; |