Mercurial > hg > truffle
changeset 2530:7e7f817bdb28
Removed dead code elimination2
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 17:05:26 +0200 |
parents | a3653aee17f7 |
children | eca17668badf |
files | graal/GraalCompiler/src/com/sun/c1x/C1XOptions.java graal/GraalCompiler/src/com/sun/c1x/graph/IR.java |
diffstat | 2 files changed, 0 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/C1XOptions.java Wed Apr 27 17:00:01 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/C1XOptions.java Wed Apr 27 17:05:26 2011 +0200 @@ -110,7 +110,6 @@ public static boolean OptIterativeNCE; public static boolean OptFlowSensitiveNCE; public static boolean OptDeadCodeElimination1; - public static boolean OptDeadCodeElimination2; public static boolean OptControlFlow; public static boolean OptMoveElimination; @@ -191,7 +190,6 @@ OptIterativeNCE = lll; OptFlowSensitiveNCE = lll; OptDeadCodeElimination1 = lll; - OptDeadCodeElimination2 = lll; OptBlockSkipping = lll; } }
--- 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