JIT: Clone all local addresses when importing `dup` (#72714)
Roslyn emits `dup` for the field address when compound assignment operators are used on struct fields. We would previously spill this address leading us to mark such structs as address exposed and disabling promotion. Also allow removing unnecessary casts in cases like ``` ASG LCL_FLD ubyte V00 CAST int <- ubyte <- int ... ``` we only allowed this cast removal for LCL_VAR and IND before, which led to unnecessary new casts in some cases with this change.
Showing
想要评论请 注册 或 登录