Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/ir/Value.java @ 2801:2af109bec0c0
Make block contains a list of nodes instead a list of instructions.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Fri, 27 May 2011 15:11:34 +0200 |
parents | d3fc4fe063bf |
children | f57594d3cd78 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Value.java Fri May 27 14:58:55 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Value.java Fri May 27 15:11:34 2011 +0200 @@ -56,11 +56,6 @@ protected CiValue operand = CiValue.IllegalValue; - /** - * Used by {@link InstructionSubstituter}. - */ - public Value subst; - public abstract Merge block(); /** @@ -89,30 +84,6 @@ throw new CloneNotSupportedException(); } - ///////////////// - - /** - * 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 - * for this instruction, {@code this} will be returned. - * @return the substitution for this instruction - */ - public final Value subst() { - if (subst == null) { - return this; - } - return subst.subst(); - } - - /** - * Checks whether this instruction has a substitute. - * @return {@code true} if this instruction has a substitution. - */ - public final boolean hasSubst() { - return subst != null; - } - /** * Check whether this instruction has the specified flag set. * @param flag the flag to test