changeset 2767:cc2b98e2b832

Reduced moveToPhi usages to 1.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Mon, 23 May 2011 16:23:28 +0200
parents 99912abb3ff7
children 43ffa0e47a46
files graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java graal/GraalCompiler/src/com/sun/c1x/target/amd64/AMD64LIRGenerator.java
diffstat 2 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java	Mon May 23 15:07:01 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java	Mon May 23 16:23:28 2011 +0200
@@ -565,9 +565,6 @@
         CiValue tag = load(x.value());
         setNoResult(x);
 
-        // move values into phi locations
-        moveToPhi(x.stateAfter());
-
         if (x.numberOfCases() == 0 || x.numberOfCases() < C1XOptions.SequentialSwitchLimit) {
             int len = x.numberOfCases();
             for (int i = 0; i < len; i++) {
@@ -825,9 +822,6 @@
         CiValue tag = value.result();
         setNoResult(x);
 
-        // move values into phi locations
-        moveToPhi(x.stateAfter());
-
         // TODO: tune the defaults for the controls used to determine what kind of translation to use
         if (x.numberOfCases() == 0 || x.numberOfCases() <= C1XOptions.SequentialSwitchLimit) {
             int loKey = x.lowKey();
--- a/graal/GraalCompiler/src/com/sun/c1x/target/amd64/AMD64LIRGenerator.java	Mon May 23 15:07:01 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/target/amd64/AMD64LIRGenerator.java	Mon May 23 16:23:28 2011 +0200
@@ -504,7 +504,6 @@
         CiValue left = xin.result();
         CiValue right = yin.result();
         lir.cmp(cond, left, right);
-        moveToPhi();
         if (x.x().kind.isFloat() || x.x().kind.isDouble()) {
             lir.branch(cond, right.kind, getLIRBlock(x.trueSuccessor()), getLIRBlock(x.unorderedSuccessor()));
         } else {