# HG changeset patch # User Gilles Duboscq # Date 1340881794 -7200 # Node ID e4b9af013c4a90b749fc1f2ce6f2e94402c7ba33 # Parent ed6142909ec8ded409067652685399c66beb0f56 Do not created a graph if we use a cached one diff -r ed6142909ec8 -r e4b9af013c4a graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/InliningPhase.java --- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/InliningPhase.java Thu Jun 28 12:00:09 2012 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/InliningPhase.java Thu Jun 28 13:09:54 2012 +0200 @@ -184,7 +184,6 @@ @Override public StructuredGraph buildGraph(final ResolvedJavaMethod method) { - final StructuredGraph newGraph = new StructuredGraph(method); return Debug.scope("buildInlineGraph", this, new Callable() { @@ -196,8 +195,7 @@ return cachedGraph; } } - - + StructuredGraph newGraph = new StructuredGraph(method); if (plan != null) { plan.runPhases(PhasePosition.AFTER_PARSING, newGraph); }