# HG changeset patch # User Christian Haeubl # Date 1355751343 -3600 # Node ID 26ffe1669cc8226514eba6cd899d8f38c888a322 # Parent 6bb5b2af957a804764697c5647b14f36e71c37e4 avoid rare useless inlinings diff -r 6bb5b2af957a -r 26ffe1669cc8 graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningUtil.java --- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningUtil.java Mon Dec 17 13:44:56 2012 +0100 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningUtil.java Mon Dec 17 14:35:43 2012 +0100 @@ -826,6 +826,8 @@ return logNotInlinedMethodAndReturnFalse(invoke, "the invoke is dead code"); } else if (!invoke.useForInlining()) { return logNotInlinedMethodAndReturnFalse(invoke, "the invoke is marked to be not used for inlining"); + } else if (invoke.methodCallTarget().receiver() != null && invoke.methodCallTarget().receiver().isConstant() && invoke.methodCallTarget().receiver().asConstant().isNull()) { + return logNotInlinedMethodAndReturnFalse(invoke, "receiver is null"); } else { return true; }