Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java @ 2781:bda5972a40a5
remove unnecessary BlockBegin nodes in frontend
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 24 May 2011 15:31:52 +0200 |
parents | 398b8fa5dc81 |
children | 915456e4959e |
comparison
equal
deleted
inserted
replaced
2776:398b8fa5dc81 | 2781:bda5972a40a5 |
---|---|
57 return (BlockBegin) successors().get(super.successorCount() + SUCCESSOR_COUNT + index); | 57 return (BlockBegin) successors().get(super.successorCount() + SUCCESSOR_COUNT + index); |
58 } | 58 } |
59 | 59 |
60 public Instruction setBlockSuccessor(int index, Instruction n) { | 60 public Instruction setBlockSuccessor(int index, Instruction n) { |
61 assert index >= 0 && index < blockSuccessorCount; | 61 assert index >= 0 && index < blockSuccessorCount; |
62 assert n == null || n instanceof BlockBegin : "only BlockBegins, for now... " + n.getClass(); | 62 // assert n == null || n instanceof BlockBegin : "only BlockBegins, for now... " + n.getClass(); |
63 return (BlockBegin) successors().set(super.successorCount() + SUCCESSOR_COUNT + index, n); | 63 return (BlockBegin) successors().set(super.successorCount() + SUCCESSOR_COUNT + index, n); |
64 } | 64 } |
65 | 65 |
66 public int blockSuccessorCount() { | 66 public int blockSuccessorCount() { |
67 return blockSuccessorCount; | 67 return blockSuccessorCount; |