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

Assert if we find undefined use during interval validation #56439

Merged
merged 2 commits into from
Jul 28, 2021

Conversation

kunalspathak
Copy link
Member

During validateIntervals(), we keep track of definition and lastuse of RefPositions. After we encounter lastUse RefPosition, we do not expect to see any other RefPosition with "use". If we see it, we were simply logging it under JitDump. The only scenario in which this can happen is the "use" RefPosition is

Earlier, whenever we find a "use" refposition without definition, we were simply logging it under JitDump. It should only happen if the "use" refposition is in a different block then the previous "lastuse" refposition. I fixed it and enabled an assert when this doesn't happen.

Fixes: #45238

@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 Jul 27, 2021
@kunalspathak
Copy link
Member Author

coreclr-jitstressregs failures are related to #30724
libraries-jitstressregs failures are related to #56237

@kunalspathak
Copy link
Member Author

@dotnet/jit-contrib

@JulieLeeMSFT
Copy link
Member

JulieLeeMSFT commented Jul 28, 2021

@kunalspathak does this close #56237 ?

@JulieLeeMSFT JulieLeeMSFT added this to the 6.0.0 milestone Jul 28, 2021
@kunalspathak
Copy link
Member Author

@kunalspathak does this close #56237 ?

No @JulieLeeMSFT - This PR is unrelated to #56237.

@kunalspathak kunalspathak merged commit ca908f5 into dotnet:main Jul 28, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 27, 2021
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.

Investigate the encounters of "undefined use at" in register allocator
3 participants