# HG changeset patch # User Thomas Wuerthinger # Date 1305119803 -7200 # Node ID df5de2a207caa9d0cd65114df13fd13939820d04 # Parent 616c6e74b69a44cff172c51e43f78f4e7fd1fc21 Removed constant value utility of LoadField. diff -r 616c6e74b69a -r df5de2a207ca graal/GraalCompiler/src/com/sun/c1x/ir/LoadField.java --- a/graal/GraalCompiler/src/com/sun/c1x/ir/LoadField.java Wed May 11 15:11:58 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/LoadField.java Wed May 11 15:16:43 2011 +0200 @@ -74,24 +74,6 @@ v.visitLoadField(this); } - /** - * Gets a constant value to which this load can be reduced. - * - * @return {@code null} if this load cannot be reduced to a constant - */ - public CiConstant constantValue() { - if (isStatic()) { - return field.constantValue(null); - } else if (object().isConstant()) { - CiConstant cons = field.constantValue(object().asConstant()); - if (cons != null) { - return cons; - } - return cons; - } - return null; - } - @Override public void print(LogStream out) { out.print(object()).