Mercurial > hg > truffle
comparison graal/com.oracle.graal.lir/src/com/oracle/graal/lir/EdgeMoveOptimizer.java @ 19208:81358265e0e0
Make LowLevelLowTierPhase generic.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Fri, 06 Feb 2015 19:43:08 +0100 |
parents | 16903af7d05c |
children | 1e3b5204776f |
comparison
equal
deleted
inserted
replaced
19207:06a0ca03236f | 19208:81358265e0e0 |
---|---|
46 * <p> | 46 * <p> |
47 * This optimization affects all kind of moves (reg->reg, reg->stack and stack->reg). | 47 * This optimization affects all kind of moves (reg->reg, reg->stack and stack->reg). |
48 * Because this optimization works best when a block contains only a few moves, it has a huge impact | 48 * Because this optimization works best when a block contains only a few moves, it has a huge impact |
49 * on the number of blocks that are totally empty. | 49 * on the number of blocks that are totally empty. |
50 */ | 50 */ |
51 public final class EdgeMoveOptimizer extends LowLevelLowTierPhase { | 51 public final class EdgeMoveOptimizer<B extends AbstractBlock<B>> extends LowLevelLowTierPhase<B> { |
52 | 52 |
53 @Override | 53 @Override |
54 protected void run(TargetDescription target, LIRGenerationResult lirGenRes) { | 54 protected void run(TargetDescription target, LIRGenerationResult lirGenRes) { |
55 LIR ir = lirGenRes.getLIR(); | 55 LIR ir = lirGenRes.getLIR(); |
56 Optimizer optimizer = new Optimizer(ir); | 56 Optimizer optimizer = new Optimizer(ir); |