-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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: Fix illegal IR created by GetElement/ToScalar lowering #91272
Conversation
These could create TYP_ULONG/TYP_UINT indirs/LCL_FLD nodes, which are illegal. Fix dotnet#91174
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsThese could create TYP_ULONG/TYP_UINT indirs/LCL_FLD nodes, which are illegal. Fix #91174
|
@@ -3860,7 +3857,8 @@ GenTree* Lowering::LowerHWIntrinsicGetElement(GenTreeHWIntrinsic* node) | |||
new (comp, GT_LEA) GenTreeAddrMode(addr->TypeGet(), newBase, newIndex, newScale, newOffset); | |||
BlockRange().InsertBefore(node, newAddr); | |||
|
|||
GenTreeIndir* newIndir = comp->gtNewIndir(newType, newAddr, (indir->gtFlags & GTF_IND_FLAGS)); | |||
GenTreeIndir* newIndir = |
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.
Would it be good to cache the JITtype2varType(simdBaseJitType)
somewhere, rather than duplicating it in 3 places?
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.
I preferred the minor duplication here since we don't expect these transformations to kick in that often, so we would usually end up not using the computed value if we did it before.
/backport to release/8.0 |
Started backporting to release/8.0: https://github.com/dotnet/runtime/actions/runs/6145328559 |
These could create TYP_ULONG/TYP_UINT indirs/LCL_FLD nodes, which are illegal.
Fix #91174