Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningPhase.java @ 11536:9021f7761457
Inlining only needs to consider invokes of Java methods, i.e., calls with a MethodCallTargetNode
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Thu, 05 Sep 2013 16:34:37 -0700 |
parents | 2da7f2efe6e2 |
children | c69df2e602f4 |
line wrap: on
line diff
--- 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); }