Mercurial > hg > graal-compiler
changeset 2772:3e3338a1abb9
Disabled dead phi elimination and phi simplifier.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Tue, 24 May 2011 10:27:15 +0200 |
parents | 056e392d63d4 |
children | 27512ea6bbcb |
files | graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java graal/GraalCompiler/src/com/sun/c1x/gen/PhiSimplifier.java graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java graal/GraalCompiler/src/com/sun/c1x/value/FrameState.java |
diffstat | 4 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java Tue May 24 09:49:04 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java Tue May 24 10:27:15 2011 +0200 @@ -1296,7 +1296,6 @@ // a block with only one predecessor never has phi functions if (sux.numberOfPreds() > 1) { - FrameState suxState = sux.stateBefore(); List<Phi> phis = getPhis(sux); @@ -1330,7 +1329,10 @@ resolver.dispose(); } - /*TTY.println("number of preds: " + sux.numberOfPreds()); + /* + + FrameState suxState = sux.stateBefore(); + TTY.println("number of preds: " + sux.numberOfPreds()); PhiResolver resolver = new PhiResolver(this);
--- a/graal/GraalCompiler/src/com/sun/c1x/gen/PhiSimplifier.java Tue May 24 09:49:04 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/gen/PhiSimplifier.java Tue May 24 10:27:15 2011 +0200 @@ -31,12 +31,12 @@ */ public final class PhiSimplifier { - public PhiSimplifier(IR ir) { + public PhiSimplifier(IR ir) {/* for (Node n : ir.compilation.graph.getNodes()) { if (n instanceof Phi) { simplify((Phi) n); } - } + }*/ } private Value simplify(Value x) {
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java Tue May 24 09:49:04 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java Tue May 24 10:27:15 2011 +0200 @@ -24,9 +24,7 @@ import com.oracle.graal.graph.*; import com.sun.c1x.debug.*; -import com.sun.c1x.value.*; import com.sun.cri.ci.*; -import com.sun.xml.internal.messaging.saaj.packaging.mime.util.*; /** * The {@code Phi} instruction represents the merging of dataflow
--- a/graal/GraalCompiler/src/com/sun/c1x/value/FrameState.java Tue May 24 09:49:04 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/value/FrameState.java Tue May 24 10:27:15 2011 +0200 @@ -336,7 +336,7 @@ if (x instanceof Phi) { Phi phi = (Phi) x; if (phi.block() == block) { - phi.makeDead(); + //phi.makeDead(); } } inputs().set(i, null);