comparison graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java @ 2674:6ab73784566a

* BlockBegin.predecessors changed to List<BlockEnd> * Node: add input/successor with given back edge index, allows for explicit ordering of predecessors/usages * Graphviz: PDF output, option to omit FrameStates * runscimark.sh: forward additional options to JVM
author Lukas Stadler <lukas.stadler@jku.at>
date Fri, 13 May 2011 15:18:41 +0200
parents 194d93d089bd
children 7ed72769d51a
comparison
equal deleted inserted replaced
2673:98447ab8bd83 2674:6ab73784566a
164 } 164 }
165 return -1; 165 return -1;
166 } 166 }
167 167
168 /** 168 /**
169 * This method reorders the predecessors of the i-th successor in such a way that this BlockEnd is at position backEdgeIndex.
170 */
171 public void reorderSuccessor(int i, int backEdgeIndex) {
172 assert i >= 0 && i < blockSuccessorCount;
173 BlockBegin successor = blockSuccessor(i);
174 if (successor != null) {
175 successors().set(super.successorCount() + SUCCESSOR_COUNT + i, Node.Null);
176 successors().set(super.successorCount() + SUCCESSOR_COUNT + i, successor, backEdgeIndex);
177 }
178 }
179
180 /**
169 * Gets this block end's list of successors. 181 * Gets this block end's list of successors.
170 * @return the successor list 182 * @return the successor list
171 */ 183 */
172 @SuppressWarnings("unchecked") 184 @SuppressWarnings("unchecked")
173 public List<BlockBegin> blockSuccessors() { 185 public List<BlockBegin> blockSuccessors() {