Mercurial > hg > graal-compiler
changeset 15438:34ae63dda6e8
Don't kill FrameState if it still has usages.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 29 Apr 2014 18:23:17 +0200 |
parents | a3f5b484b6b5 |
children | 10023073e858 f52961f15275 |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/util/GraphUtil.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/util/GraphUtil.java Tue Apr 29 17:16:48 2014 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/util/GraphUtil.java Tue Apr 29 18:23:17 2014 +0200 @@ -140,7 +140,9 @@ if (fixed instanceof StateSplit) { FrameState stateAfter = ((StateSplit) fixed).stateAfter(); ((StateSplit) fixed).setStateAfter(null); - killWithUnusedFloatingInputs(stateAfter); + if (stateAfter.usages().isEmpty()) { + killWithUnusedFloatingInputs(stateAfter); + } } FixedNode next = fixed.next(); fixed.setNext(null);