-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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: review properties of jit helpers #7723
Comments
Also have seen several cases where we null check the result of a NEW helper, despite it being marked as returning an non-null value. Will try and update this issue with a specific example. So perhaps there are cases where some properties aren't taken into account? |
There's an example of null check after new in dotnet/coreclr#14472 -- the new is from an inlined box. |
Considering this for 2.1, so changing milestone. |
Probably not happening in time for 2.1, so pushing it out to Future once more. |
This helper is idempotent and exception free, so enable it for value numbering. Also, no need to spill the entire eval stack for a virtual stub calls. Addresses part of dotnet#7723.
Keeping this as future unless we believe we should review this for .NET 9. |
Some helpers are missing explicit entries in the helper classifier code at
HelperCallProperties::init()
. Seems like we should adopt a policy where all helper properties are spelled out explicitly and the default case asserts, so when a new helper is added we know we should go add the properties.For instance
CORINFO_HELP_READYTORUN_GENERIC_HANDLE
is not listed and calls to it likely can be removed if the result is unused.category:cq
theme:helpers
skill-level:expert
cost:medium
The text was updated successfully, but these errors were encountered: