Mercurial > hg > graal-compiler
changeset 5096:56a53c80ad2b
Fix intrinsification of an invoke with exception with a deoptimize node.
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Fri, 16 Mar 2012 19:30:11 +0100 |
parents | 57ae0b1cc74a |
children | 5d0925455be1 |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/InvokeWithExceptionNode.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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); }