Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java @ 2821:015be60afcf3
removed flags from Value class
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Mon, 30 May 2011 17:05:06 +0200 |
parents | c3f64b66fc78 |
children | bd17ac598c6e |
comparison
equal
deleted
inserted
replaced
2820:2b8ef0a06391 | 2821:015be60afcf3 |
---|---|
38 private static final int INPUT_BLOCK = 0; | 38 private static final int INPUT_BLOCK = 0; |
39 | 39 |
40 private static final int SUCCESSOR_COUNT = 0; | 40 private static final int SUCCESSOR_COUNT = 0; |
41 | 41 |
42 private int usedInputCount; | 42 private int usedInputCount; |
43 private boolean isDead; | |
43 | 44 |
44 @Override | 45 @Override |
45 protected int successorCount() { | 46 protected int successorCount() { |
46 return super.successorCount() + SUCCESSOR_COUNT; | 47 return super.successorCount() + SUCCESSOR_COUNT; |
47 } | 48 } |
99 | 100 |
100 /** | 101 /** |
101 * Make this phi illegal if types were not merged correctly. | 102 * Make this phi illegal if types were not merged correctly. |
102 */ | 103 */ |
103 public void makeDead() { | 104 public void makeDead() { |
104 setFlag(Flag.PhiCannotSimplify); | 105 isDead = true; |
105 setFlag(Flag.PhiDead); | 106 } |
107 | |
108 public boolean isDead() { | |
109 return isDead; | |
106 } | 110 } |
107 | 111 |
108 @Override | 112 @Override |
109 public void print(LogStream out) { | 113 public void print(LogStream out) { |
110 out.print("phi function ("); | 114 out.print("phi function ("); |