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

Fix isKnonwNonNull for box and unbox #97799

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented Feb 1, 2024

VNF_Box function is not marked as "never-null" (unlikely to have an effect)
VNF_Unbox was marked as "never-null" which is not correct as it might return 0.

@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 Feb 1, 2024
@ghost ghost assigned EgorBo Feb 1, 2024
@ghost
Copy link

ghost commented Feb 1, 2024

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

Issue Details

VNF_Box function is not marked as "never-null" (unlikely to have an effect)
VNF_Unbox was marked as "never-null" which is not correct as it might return 0.

Author: EgorBo
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@jakobbotsch
Copy link
Member

Is a test possible?

@EgorBo
Copy link
Member Author

EgorBo commented Feb 1, 2024

Is a test possible?

I wasn't able to make one. VNF_Box can probably be even removed as unused and Unbox is typically expanded early on fast and slow path, wasn't able to repro the issue for the slow path, but it could potentially manifest in future?

@EgorBo EgorBo merged commit a102e88 into dotnet:main Feb 2, 2024
129 checks passed
@EgorBo EgorBo deleted the fix-knownnonnull-vn branch February 2, 2024 01:17
@github-actions github-actions bot locked and limited conversation to collaborators Mar 3, 2024
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.

2 participants