Skip to content

Commit bb8e6c5

Browse files
committed
[GR-37097] Finalize graph before last truffle tier.
PullRequest: graal/11459
2 parents ee7ebc2 + 347eaf9 commit bb8e6c5

File tree

1 file changed

+2
-2
lines changed
  • compiler/src/org.graalvm.compiler.truffle.compiler/src/org/graalvm/compiler/truffle/compiler/phases/inlining

1 file changed

+2
-2
lines changed

compiler/src/org.graalvm.compiler.truffle.compiler/src/org/graalvm/compiler/truffle/compiler/phases/inlining/AgnosticInliningPhase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ protected void run(StructuredGraph graph, TruffleTierContext context) {
8989
tree.collectTargetsToDequeue(context.task.inliningData());
9090
tree.updateTracingInfo(context.task.inliningData());
9191
}
92+
tree.finalizeGraph();
93+
tree.trace();
9294
if (!tree.getRoot().getChildren().isEmpty()) {
9395
/*
9496
* If we've seen a truffle call in the graph, even if we have not inlined any call
@@ -98,8 +100,6 @@ protected void run(StructuredGraph graph, TruffleTierContext context) {
98100
*/
99101
postPartialEvaluationSuite.apply(graph, context);
100102
}
101-
tree.finalizeGraph();
102-
tree.trace();
103103
graph.maybeCompress();
104104
assert GraphOrder.assertSchedulableGraph(graph) : "PE result must be schedulable in order to apply subsequent phases";
105105
}

0 commit comments

Comments
 (0)