# HG changeset patch # User Andreas Woess # Date 1331922611 -3600 # Node ID 56a53c80ad2bcb484b68f3d8f23226a0b1610878 # Parent 57ae0b1cc74aa3a6ccc9366a790e6352b4f06ac5 Fix intrinsification of an invoke with exception with a deoptimize node. diff -r 57ae0b1cc74a -r 56a53c80ad2b graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/InvokeWithExceptionNode.java --- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/InvokeWithExceptionNode.java Fri Mar 16 19:23:43 2012 +0100 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/InvokeWithExceptionNode.java Fri Mar 16 19:30:11 2012 +0100 @@ -178,6 +178,11 @@ if (node == null) { assert kind() == CiKind.Void && usages().isEmpty(); ((StructuredGraph) graph()).removeSplit(this, NORMAL_EDGE); + } else if (node instanceof DeoptimizeNode) { + this.replaceAtPredecessors(node); + this.replaceAtUsages(null); + GraphUtil.killCFG(this); + return; } else { ((StructuredGraph) graph()).replaceSplit(this, node, NORMAL_EDGE); }