Mercurial > hg > graal-jvmci-8
changeset 4687:bacc18e07f7b
Removed dead code from the inlining util. STATE_BEFORE is only used in BlockBegin, which in turn is not added to the caller graph during inlining.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 24 Feb 2012 19:50:23 +0100 |
parents | acf7d88327fa |
children | f761948a7cd5 |
files | graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/util/InliningUtil.java |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/util/InliningUtil.java Thu Feb 23 23:06:28 2012 +0100 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/util/InliningUtil.java Fri Feb 24 19:50:23 2012 +0100 @@ -826,7 +826,6 @@ } } - FrameState stateBefore = null; FrameState outerFrameState = null; double invokeProbability = invoke.node().probability(); for (Node node : duplicates.values()) { @@ -842,12 +841,8 @@ } if (node instanceof FrameState) { FrameState frameState = (FrameState) node; - if (frameState.bci == FrameState.BEFORE_BCI) { - if (stateBefore == null) { - stateBefore = stateAfter.duplicateModified(invoke.bci(), false, invoke.node().kind(), parameters.toArray(new ValueNode[parameters.size()])); - } - frameState.replaceAndDelete(stateBefore); - } else if (frameState.bci == FrameState.AFTER_BCI) { + assert frameState.bci != FrameState.BEFORE_BCI; + if (frameState.bci == FrameState.AFTER_BCI) { frameState.replaceAndDelete(stateAfter); } else if (frameState.bci == FrameState.AFTER_EXCEPTION_BCI) { if (frameState.isAlive()) {