-
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
[release/8.0] JIT: Handle mistyped commas in morph in pre-order too #91718
Conversation
Morph has post-order logic to compensate for mistyped commas produced by impStoreStruct. However, block morphing can optimize unused stores into INDs; this interacts with the mistyped commas to produce illegal IR shapes (e.g. `COMMA<simd12>(..., IND<ubyte>(...))`). The ideal solution is to fix impStoreStruct (#91586 tracks this), but this change has a more surgical fix for the problem that can be backported to .NET 8. Fix #91443
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsBackport of #91587 to release/8.0 /cc @jakobbotsch Customer ImpactTestingRiskIMPORTANT: If this backport is for a servicing release, please verify that:
|
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.
approved. please get a code review. once ready we can merge
@jakobbotsch / @JulieLeeMSFT can y'all take a look at the PR failures and let me know if we are ready to merge. |
@jeffschwMSFT Looks like CI is green after rerunning those (the failures looked like #91705 when I glanced) |
Backport of #91587 to release/8.0
/cc @jakobbotsch
Customer Impact
With some code patterns the JIT may generate invalid internal IR that can lead to unpredictable results (bad codegen, JIT crash).
Testing
Regression test included.
Risk
Low. This extends some preexisting compensating logic to happen in an extra place.