Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java @ 2581:4a36a0bd6d18
added GraalGraph to classpath, Node as superclass of Value
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 05 May 2011 13:27:48 +0200 |
parents | 16b9a8b5ad39 |
children | 768d77a1c7af |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java Wed May 04 18:57:26 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java Thu May 05 13:27:48 2011 +0200 @@ -103,7 +103,7 @@ if (block.isExceptionEntry()) { state = block.exceptionHandlerStates().get(i); } else { - state = block.predecessors().get(i).end().stateAfter(); + state = block.blockPredecessors().get(i).end().stateAfter(); } return inputIn(state); } @@ -125,11 +125,12 @@ * Get the number of inputs to this phi (i.e. the number of predecessors to the join block). * @return the number of inputs in this phi */ + @Override public int inputCount() { if (block.isExceptionEntry()) { return block.exceptionHandlerStates().size(); } else { - return block.predecessors().size(); + return block.blockPredecessors().size(); } }