Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/ir/Anchor.java @ 2866:7f14e6b48a9c
added dead code elimination
added ValueAnchor (temp workaround)
more inlining logic (now uses DCE)
IdealGraphPrinter: print even if Scheduler fails
added inlining and DCE tracing options to C1XOptions
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 07 Jun 2011 16:27:08 +0200 |
parents | d6f3dbb4e3b5 |
children | 5c545fef2c81 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Anchor.java Wed Jun 01 16:56:54 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Anchor.java Tue Jun 07 16:27:08 2011 +0200 @@ -27,7 +27,7 @@ import com.sun.cri.ci.*; /** - * The {@code Goto} instruction represents the end of a block with an unconditional jump to another block. + * The {@code Anchor} instruction represents the end of a block with an unconditional jump to another block. */ public final class Anchor extends BlockEnd { @@ -35,14 +35,11 @@ private static final int SUCCESSOR_COUNT = 0; /** - * Constructs a new Goto instruction. - * @param succ the successor block of the goto - * @param stateAfter the frame state at the end of this block + * Constructs a new Anchor instruction. * @param graph */ - public Anchor(Instruction succ, Graph graph) { + public Anchor(Graph graph) { super(CiKind.Illegal, 1, INPUT_COUNT, SUCCESSOR_COUNT, graph); - setBlockSuccessor(0, succ); } @Override @@ -57,7 +54,7 @@ @Override public Node copy(Graph into) { - Anchor x = new Anchor(null, into); + Anchor x = new Anchor(into); x.setNonNull(isNonNull()); return x; }