# HG changeset patch # User Christian Wimmer # Date 1378424077 25200 # Node ID 9021f7761457b77eff99868dec9162628a2684f9 # Parent 2d759e68c8ca63eb9976b24c5062d37d3474f84f Inlining only needs to consider invokes of Java methods, i.e., calls with a MethodCallTargetNode diff -r 2d759e68c8ca -r 9021f7761457 graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningPhase.java --- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningPhase.java Thu Sep 05 20:23:20 2013 +0200 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningPhase.java Thu Sep 05 16:34:37 2013 -0700 @@ -512,7 +512,7 @@ while ((current = nextQueuedNode()) != null) { assert current.isAlive(); - if (current instanceof Invoke) { + if (current instanceof Invoke && ((Invoke) current).callTarget() instanceof MethodCallTargetNode) { if (current != start) { invokes.addLast((Invoke) current); }