Skip to content

Commit 9b25754

Browse files
committed
[GR-36933] Fix first tier regression.
PullRequest: graal/11059
2 parents 6ab8d84 + 55d06d9 commit 9b25754

File tree

1 file changed

+4
-6
lines changed
  • compiler/src/org.graalvm.compiler.truffle.compiler/src/org/graalvm/compiler/truffle/compiler

1 file changed

+4
-6
lines changed

compiler/src/org.graalvm.compiler.truffle.compiler/src/org/graalvm/compiler/truffle/compiler/PartialEvaluator.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,11 @@ public final StructuredGraph evaluate(Request request) {
345345
try (PerformanceInformationHandler handler = PerformanceInformationHandler.install(request.options)) {
346346
try (DebugContext.Scope s = request.debug.scope("CreateGraph", request.graph);
347347
Indent indent = request.debug.logAndIndent("evaluate %s", request.graph);) {
348-
boolean inlined = inliningGraphPE(request);
348+
inliningGraphPE(request);
349349
assert GraphOrder.assertSchedulableGraph(request.graph) : "PE result must be schedulable in order to apply subsequent phases";
350-
// If no inlining has happened, we can skip the final Truffle tier round
351-
// since these phases have already been run during PE of the root.
352-
if (inlined) {
353-
truffleTier(request);
354-
}
350+
// Even if we have not inlined any call target, we need to run the truffle tier
351+
// phases again after the PE inlining phase has finalized the graph.
352+
truffleTier(request);
355353
applyInstrumentationPhases(request);
356354
handler.reportPerformanceWarnings(request.compilable, request.graph);
357355
if (request.task.isCancelled()) {

0 commit comments

Comments
 (0)