Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/graph/IR.java @ 2530:7e7f817bdb28
Removed dead code elimination2
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 17:05:26 +0200 |
parents | 6edc0306038e |
children | eca17668badf |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/IR.java Wed Apr 27 17:00:01 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/graph/IR.java Wed Apr 27 17:05:26 2011 +0200 @@ -90,7 +90,6 @@ optimize1(); computeLinearScanOrder(); - optimize2(); if (C1XOptions.PrintTimers) { C1XTimers.HIR_OPTIMIZE.stop(); @@ -111,11 +110,6 @@ } private void optimize1() { - // do basic optimizations - /*if (C1XOptions.PhiSimplify) { - new PhiSimplifier(this); - verifyAndPrint("After phi simplification"); - }*/ if (C1XOptions.OptDeadCodeElimination1) { new LivenessMarker(this).removeDeadCode(); verifyAndPrint("After dead code elimination 1"); @@ -141,14 +135,6 @@ } } - private void optimize2() { - if (C1XOptions.OptDeadCodeElimination2) { - new LivenessMarker(this).removeDeadCode(); - verifyAndPrint("After dead code elimination 2"); - } - - } - /** * Gets the linear scan ordering of blocks as a list. * @return the blocks in linear scan order