-
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: GTF_GLOB_REF set unnecessarily on some local field accesses #856
Comments
Prototype: NoGlobalFlagForFieldsOfLocals Doesn't change things much...
|
FWIW I suspect that my current crusade against Also, if a variable is address exposed, morph will add back |
Would be nice to get this right early and have one utility we can call. Playing around with making Need to look around and see if there are any other ad-hoc classifiers. |
The proper way to do this is to get rid of all that stuff, not updating it. |
@mikedn how do you see the importer handling these cases? |
|
Seemed easy enough. Co-authored-by: Jan Kotas <jkotas@microsoft.com>
@SingleAccretion perhaps you've already addressed this one? |
No, not yet at least. It should get addressed with the refactoring of |
Still relevant. |
* Avoid setting GTF_GLOB_REF on GT_FIELD_ADDR nodes * Avoid setting GTF_GLOB_REF on GT_FIELD nodes off of implicit byrefs. This is ok now since implicit byref morphing indiscriminately sets GTF_GLOB_REF for these. * Manually clone a "pointer to span" in span intrinsic expansion when it points to a local. Unfortunately this does not fall out from the above since gtClone does not handle FIELD_ADDR, and making it handle this needs some more work. These changes are necessary to avoid address exposure in the two user benchmarks in #83388. Fix #74563 Fix #856
In particular, for address of a field.
We also should clarify or remove the x64/arm64 conservatism around implicit byref struct params.
See notes over in #845.
category:implementation
theme:ir
skill-level:expert
cost:medium
The text was updated successfully, but these errors were encountered: