-
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
Add test for boxing byreflike fail. #101458
Add test for boxing byreflike fail. #101458
Conversation
I am also curious if the following going to be considered a valid IL for
The behavior of IL is reasonable, but sequences This is not an ask from compiler to support an IL like that. |
I will validate those sequences today.
@AlekseyTs Correct. The JIT only recognizes sequences in this area that begin with runtime/src/coreclr/jit/importer.cpp Lines 2829 to 2848 in 56ee7c5
Understood. |
I will take a look at the Mono failures. |
#101509 should fix the current mono test failures. |
@AlekseyTs Yes, that is valid. I've also added a test for that case. |
@lambdageek @fanyang-mono @steveisok Please take a look. The CI is now green. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* Check if type is compatible right before emitting box * Add test for using byreflike type in isinst expressions.
* Check if type is compatible right before emitting box * Add test for using byreflike type in isinst expressions.
/cc @AlekseyTs @elinor-fung @lambdageek @fanyang-mono