Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/ir/Unwind.java @ 2751:0fe79e7435c3
More scheduling. Removed need for cfg iteration in the phi simplifier.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Fri, 20 May 2011 14:22:22 +0200 |
parents | a0dd2b907806 |
children | 93fd92c9f8b0 |
comparison
equal
deleted
inserted
replaced
2745:114fc809462f | 2751:0fe79e7435c3 |
---|---|
32 public final class Unwind extends BlockEnd { | 32 public final class Unwind extends BlockEnd { |
33 | 33 |
34 private static final int INPUT_COUNT = 1; | 34 private static final int INPUT_COUNT = 1; |
35 private static final int INPUT_EXCEPTION = 0; | 35 private static final int INPUT_EXCEPTION = 0; |
36 | 36 |
37 private static final int SUCCESSOR_COUNT = 0; | 37 private static final int SUCCESSOR_COUNT = 1; |
38 private static final int SUCCESSOR_END = 0; | |
38 | 39 |
39 @Override | 40 @Override |
40 protected int inputCount() { | 41 protected int inputCount() { |
41 return super.inputCount() + INPUT_COUNT; | 42 return super.inputCount() + INPUT_COUNT; |
42 } | 43 } |
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; |
48 } | |
49 | |
50 @Override | |
51 public Instruction next() { | |
52 return null; | |
47 } | 53 } |
48 | 54 |
49 /** | 55 /** |
50 * The instruction that produces the exception object. | 56 * The instruction that produces the exception object. |
51 */ | 57 */ |
59 } | 65 } |
60 | 66 |
61 public Unwind(Value exception, Graph graph) { | 67 public Unwind(Value exception, Graph graph) { |
62 super(CiKind.Object, null, 0, INPUT_COUNT, SUCCESSOR_COUNT, graph); | 68 super(CiKind.Object, null, 0, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
63 setException(exception); | 69 setException(exception); |
70 successors().set(SUCCESSOR_END, graph.end()); | |
64 } | 71 } |
65 | 72 |
66 @Override | 73 @Override |
67 public void accept(ValueVisitor v) { | 74 public void accept(ValueVisitor v) { |
68 v.visitUnwind(this); | 75 v.visitUnwind(this); |