Mercurial > hg > truffle
changeset 5440:ecba62805b64
removed obsolete code in LoweringPhase
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 24 May 2012 15:18:41 +0200 |
parents | 4fc3a8040430 |
children | 0368c19fc175 f67b71c0e9e5 |
files | graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/LoweringPhase.java |
diffstat | 1 files changed, 0 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/LoweringPhase.java Thu May 24 12:11:20 2012 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/LoweringPhase.java Thu May 24 15:18:41 2012 +0200 @@ -29,7 +29,6 @@ import com.oracle.graal.lir.cfg.*; import com.oracle.graal.nodes.*; import com.oracle.graal.nodes.calc.*; -import com.oracle.graal.nodes.java.*; import com.oracle.graal.nodes.spi.*; import com.oracle.max.cri.ci.*; import com.oracle.max.cri.ri.*; @@ -111,27 +110,6 @@ } } - protected void run0(final StructuredGraph graph) { - ControlFlowGraph cfg = ControlFlowGraph.compute(graph, true, false, true, true); - - NodeBitMap processed = graph.createNodeBitMap(); - NodeBitMap activeGuards = graph.createNodeBitMap(); - processBlock(cfg.getStartBlock(), activeGuards, processed, null); - - processed.negate(); - final CiLoweringTool loweringTool = new LoweringToolBase(); - for (Node node : processed) { - if (node instanceof CheckCastNode) { - // This is a checkcast that was created while lowering some other node (e.g. StoreIndexed). - // This checkcast must now be LIR lowered. - // TODO (dnsimon) this is temp workaround that will be removed - } else if (node instanceof Lowerable) { - assert !(node instanceof FixedNode) || node.predecessor() == null : node; - ((Lowerable) node).lower(loweringTool); - } - } - } - private void processBlock(Block block, NodeBitMap activeGuards, NodeBitMap processed, FixedNode parentAnchor) { FixedNode anchor = parentAnchor;