Commit ade2459
authored
JIT: Add ordering side effects in fgMorphExpandInstanceField (#92998)
In #92710 I removed an ordering side effect set on a LCL_VAR node in
fgMorphExpandInstanceField, since the side effect is meaningless on a
local. However, I did not realize that setting the ordering effect was
important because propagating it to parent nodes was actually necessary.
This PR explicitly sets the ordering effect on the ADD<byref> nodes
created, since forming these and reporting them to GC is illegal if the
base is invalid.
Additionally, it sets the ordering effect on the consuming indirection;
if that indirection made use of the fact that the FIELD_ADDR is non-null
to become non-faulting, then it has an ordering dependency once we
expand the FIELD_ADDR to a control-flow based null-check. This is not
actually necessary since we always set end up with an ADD<byref> that
propagates it, but that seems more like a coincidence than anything
else.
Fix #929901 parent 686bd7a commit ade2459
2 files changed
+35
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5917 | 5917 | | |
5918 | 5918 | | |
5919 | 5919 | | |
5920 | | - | |
5921 | | - | |
| 5920 | + | |
| 5921 | + | |
5922 | 5922 | | |
5923 | 5923 | | |
5924 | 5924 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5088 | 5088 | | |
5089 | 5089 | | |
5090 | 5090 | | |
5091 | | - | |
| 5091 | + | |
| 5092 | + | |
| 5093 | + | |
| 5094 | + | |
| 5095 | + | |
| 5096 | + | |
| 5097 | + | |
5092 | 5098 | | |
5093 | | - | |
| 5099 | + | |
| 5100 | + | |
| 5101 | + | |
| 5102 | + | |
| 5103 | + | |
| 5104 | + | |
| 5105 | + | |
| 5106 | + | |
| 5107 | + | |
| 5108 | + | |
5094 | 5109 | | |
5095 | 5110 | | |
5096 | 5111 | | |
| |||
5153 | 5168 | | |
5154 | 5169 | | |
5155 | 5170 | | |
| 5171 | + | |
| 5172 | + | |
| 5173 | + | |
| 5174 | + | |
| 5175 | + | |
| 5176 | + | |
| 5177 | + | |
5156 | 5178 | | |
5157 | 5179 | | |
5158 | 5180 | | |
| |||
5168 | 5190 | | |
5169 | 5191 | | |
5170 | 5192 | | |
| 5193 | + | |
| 5194 | + | |
| 5195 | + | |
| 5196 | + | |
| 5197 | + | |
| 5198 | + | |
| 5199 | + | |
5171 | 5200 | | |
5172 | 5201 | | |
5173 | 5202 | | |
| |||
8937 | 8966 | | |
8938 | 8967 | | |
8939 | 8968 | | |
8940 | | - | |
| 8969 | + | |
| 8970 | + | |
8941 | 8971 | | |
8942 | 8972 | | |
8943 | 8973 | | |
| |||
8961 | 8991 | | |
8962 | 8992 | | |
8963 | 8993 | | |
8964 | | - | |
8965 | | - | |
8966 | | - | |
8967 | | - | |
8968 | | - | |
8969 | | - | |
8970 | | - | |
8971 | 8994 | | |
8972 | 8995 | | |
8973 | 8996 | | |
| |||
0 commit comments