Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIT: Always track the context for late devirt #112396

Merged
merged 15 commits into from
Feb 19, 2025
7 changes: 6 additions & 1 deletion src/coreclr/jit/fginline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,12 @@ class SubstitutePlaceholdersAndDevirtualizeWalker : public GenTreeVisitor<Substi
}

call->GetSingleInlineCandidateInfo()->exactContextHandle = context;
INDEBUG(call->GetSingleInlineCandidateInfo()->inlinersContext = call->gtInlineContext);
#ifdef DEBUG
// Update inline context for Debug.
call->gtInlineContext = call->GetSingleInlineCandidateInfo()->inlinersContext;
DebugInfo debugInfo(call->gtInlineContext, ILLocation(call->gtRawILOffset, false, true));
m_curStmt->SetDebugInfo(debugInfo);
#endif

JITDUMP("New inline candidate due to late devirtualization:\n");
DISPTREE(call);
Expand Down
Loading