Mercurial > hg > truffle
changeset 15999:096848853662
[inliner] no need to alias a final field
author | Miguel Garcia <miguel.m.garcia@oracle.com> |
---|---|
date | Mon, 02 Jun 2014 17:58:07 +0200 |
parents | 9b9d0017168c |
children | 2e1957c8ccb8 |
files | graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/inlining/info/elem/InlineableGraph.java |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/inlining/info/elem/InlineableGraph.java Mon Jun 02 17:27:33 2014 +0200 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/inlining/info/elem/InlineableGraph.java Mon Jun 02 17:58:07 2014 +0200 @@ -72,7 +72,7 @@ private boolean specializeGraphToArguments(final Invoke invoke, final HighTierContext context, CanonicalizerPhase canonicalizer) { try (Debug.Scope s = Debug.scope("InlineGraph", graph)) { - ArrayList<Node> parameterUsages = replaceParamsWithMoreInformativeArguments(invoke, graph, context); + ArrayList<Node> parameterUsages = replaceParamsWithMoreInformativeArguments(invoke, context); if (parameterUsages != null && OptCanonicalizer.getValue()) { assert !parameterUsages.isEmpty() : "The caller didn't have more information about arguments after all"; canonicalizer.applyIncremental(graph, context, parameterUsages); @@ -119,10 +119,10 @@ * @return null if no incremental canonicalization is need, a list of nodes for such * canonicalization otherwise. */ - private static ArrayList<Node> replaceParamsWithMoreInformativeArguments(final Invoke invoke, final StructuredGraph newGraph, final HighTierContext context) { + private ArrayList<Node> replaceParamsWithMoreInformativeArguments(final Invoke invoke, final HighTierContext context) { NodeInputList<ValueNode> args = invoke.callTarget().arguments(); ArrayList<Node> parameterUsages = null; - List<ParameterNode> params = newGraph.getNodes(ParameterNode.class).snapshot(); + List<ParameterNode> params = graph.getNodes(ParameterNode.class).snapshot(); assert params.size() <= args.size(); /* * param-nodes that aren't used (eg, as a result of canonicalization) don't occur in @@ -137,7 +137,7 @@ Constant constant = arg.asConstant(); parameterUsages = trackParameterUsages(param, parameterUsages); // collect param usages before replacing the param - newGraph.replaceFloating(param, ConstantNode.forConstant(constant, context.getMetaAccess(), newGraph)); + graph.replaceFloating(param, ConstantNode.forConstant(constant, context.getMetaAccess(), graph)); // param-node gone, leaving a gap in the sequence given by param.index() } else { Stamp joinedStamp = param.stamp().join(arg.stamp());