# HG changeset patch # User Bernhard Urban # Date 1380743652 -7200 # Node ID 39e9ec0cf310638da6932f8199bdbc609e9a75be # Parent ef895852aeb405c4bad9c151e3722cb5643212e7 Inlining: remove killing begin node in non-exceptional path of InvokeWithException after inlining diff -r ef895852aeb4 -r 39e9ec0cf310 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 Wed Oct 02 18:40:48 2013 +0200 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningUtil.java Wed Oct 02 21:54:12 2013 +0200 @@ -1363,6 +1363,13 @@ } else { invokeWithException.killExceptionEdge(); } + + // get rid of memory kill + AbstractBeginNode begin = invokeWithException.next(); + if (begin instanceof KillingBeginNode) { + graph.addAfterFixed(begin, graph.add(new BeginNode())); + graph.removeFixed(begin); + } } else { if (unwindNode != null) { UnwindNode unwindDuplicate = (UnwindNode) duplicates.get(unwindNode);