diff graal/GraalCompiler/src/com/sun/c1x/ir/Value.java @ 2546:e1b3db8031ee

Removed liveness marking.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 27 Apr 2011 21:54:31 +0200
parents 0f9eeb15e636
children 4a36a0bd6d18
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Value.java	Wed Apr 27 21:38:22 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Value.java	Wed Apr 27 21:54:31 2011 +0200
@@ -37,10 +37,6 @@
     public enum Flag {
         NonNull,            // this value is non-null
 
-        LiveValue,          // live because value is used
-        LiveDeopt,          // live for deoptimization
-        LiveSideEffect,     // live for possible side-effects only
-
         PhiDead,            // phi is illegal because local is dead
         PhiCannotSimplify,  // phi cannot be simplified
         PhiVisited;         // phi has been visited during simplification
@@ -48,9 +44,6 @@
         public final int mask = 1 << ordinal();
     }
 
-    private static final int LIVE_FLAGS = Flag.LiveValue.mask |
-                                          Flag.LiveDeopt.mask |
-                                          Flag.LiveSideEffect.mask;
     /**
      * The kind of this value. This is {@link CiKind#Void} for instructions that produce no value.
      * This kind is guaranteed to be a {@linkplain CiKind#stackKind() stack kind}.
@@ -86,25 +79,6 @@
     }
 
     /**
-     * Checks whether this instruction is live (i.e. code should be generated for it).
-     * This is computed in a dedicated pass by {@link LivenessMarker}.
-     * An instruction is live because its value is needed by another live instruction,
-     * because its value is needed for deoptimization, or the program is control dependent
-     * upon it.
-     * @return {@code true} if this instruction should be considered live
-     */
-    public final boolean isLive() {
-        return C1XOptions.PinAllInstructions || (flags & LIVE_FLAGS) != 0;
-    }
-
-    /**
-     * Clears all liveness flags.
-     */
-    public final void clearLive() {
-        flags = flags & ~LIVE_FLAGS;
-    }
-
-    /**
      * Gets the instruction that should be substituted for this one. Note that this
      * method is recursive; if the substituted instruction has a substitution, then
      * the final substituted instruction will be returned. If there is no substitution