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: add missing recursive tail call detection logic #93892

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

AndyAyersMS
Copy link
Member

We now require that recursive tail calls be noted before morph by setting method and block flags. Add missing flag setting when devirtualization creates a recursive tail call candidate.

Also add a diagnosic post-phase check to catch cases like this earlier.

Fixes #93844.

We now require that recursive tail calls be noted before morph by setting
method and block flags. Add missing flag setting when devirtualization creates
a recursive tail call candidate.

Also add a diagnosic post-phase check to catch cases like this earlier.

Fixes dotnet#93844.
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Oct 23, 2023
@ghost ghost assigned AndyAyersMS Oct 23, 2023
@ghost
Copy link

ghost commented Oct 23, 2023

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

We now require that recursive tail calls be noted before morph by setting method and block flags. Add missing flag setting when devirtualization creates a recursive tail call candidate.

Also add a diagnosic post-phase check to catch cases like this earlier.

Fixes #93844.

Author: AndyAyersMS
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@AndyAyersMS
Copy link
Member Author

cc @dotnet/jit-contrib

@AndyAyersMS
Copy link
Member Author

/azp run runtime-coreclr libraries-jitstress, runtime-coreclr jitstress

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@AndyAyersMS
Copy link
Member Author

Failures may be #91769 ?

@jakobbotsch
Copy link
Member

They look known according to build analysis (#48798)

@AndyAyersMS AndyAyersMS merged commit 87c2558 into dotnet:main Oct 23, 2023
170 of 174 checks passed
@ghost ghost locked as resolved and limited conversation to collaborators Nov 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[libraries-jitstress] JIT: Assertion failed 'doesMethodHaveRecursiveTailcall()' during 'Morph - Global'
2 participants