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.
|
TIHan
left a comment
There was a problem hiding this comment.
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
CASTnode has $100,$100 VN that represents an integer constant (with help of #78929)@dotnet/jit-contrib PTAL simple change.