-
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
Improve fgGetStaticFieldSeqAndAddress #78961
Improve fgGetStaticFieldSeqAndAddress #78961
Conversation
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsIt turns out it's a bit too conservative by looking only at CNS_INT nodes and in a case I found I need to rely on VN instead, e.g.:
In this case @dotnet/jit-contrib PTAL simple change.
|
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.
This looks like a simple and good change to me, pending CI.
Quick question, what is GTF_ICON_STATIC_HDL
and why are we not including them?
This functions looks for trees where GTF_ICON_STATIC_HDL (address of a static field basically, in this case -- address of an RVA element) is blended with constant offsets, e.g. |
Failure is #78986 (fixed) |
It turns out it's a bit too conservative by looking only at CNS_INT nodes and in a case I found I need to rely on VN instead, e.g.:
In this case
CAST
node has $100,$100 VN that represents an integer constant (with help of #78929)@dotnet/jit-contrib PTAL simple change.