Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/graph/IR.java @ 2807:50b5db2c3e68
Fix for degenerated phis. Now jtt and DaCapo/fop passes with ArithmeticOp and Constant being flexible in the graph.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Fri, 27 May 2011 23:47:23 +0200 |
parents | c3f64b66fc78 |
children | b003ea36fa12 |
comparison
equal
deleted
inserted
replaced
2806:f35c6f8f0f5d | 2807:50b5db2c3e68 |
---|---|
26 | 26 |
27 import com.oracle.graal.graph.*; | 27 import com.oracle.graal.graph.*; |
28 import com.oracle.max.graal.schedule.*; | 28 import com.oracle.max.graal.schedule.*; |
29 import com.sun.c1x.*; | 29 import com.sun.c1x.*; |
30 import com.sun.c1x.debug.*; | 30 import com.sun.c1x.debug.*; |
31 import com.sun.c1x.gen.*; | |
31 import com.sun.c1x.ir.*; | 32 import com.sun.c1x.ir.*; |
32 import com.sun.c1x.lir.*; | 33 import com.sun.c1x.lir.*; |
33 import com.sun.c1x.observer.*; | 34 import com.sun.c1x.observer.*; |
34 | 35 |
35 /** | 36 /** |
78 if (C1XOptions.PrintTimers) { | 79 if (C1XOptions.PrintTimers) { |
79 C1XTimers.HIR_CREATE.stop(); | 80 C1XTimers.HIR_CREATE.stop(); |
80 C1XTimers.HIR_OPTIMIZE.start(); | 81 C1XTimers.HIR_OPTIMIZE.start(); |
81 } | 82 } |
82 | 83 |
84 new PhiSimplifier(this); | |
83 Schedule schedule = new Schedule(this.compilation.graph); | 85 Schedule schedule = new Schedule(this.compilation.graph); |
84 List<Block> blocks = schedule.getBlocks(); | 86 List<Block> blocks = schedule.getBlocks(); |
85 List<LIRBlock> lirBlocks = new ArrayList<LIRBlock>(); | 87 List<LIRBlock> lirBlocks = new ArrayList<LIRBlock>(); |
86 Map<Block, LIRBlock> map = new HashMap<Block, LIRBlock>(); | 88 Map<Block, LIRBlock> map = new HashMap<Block, LIRBlock>(); |
87 for (Block b : blocks) { | 89 for (Block b : blocks) { |