Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release/8.0-rc1] [mini] Fix typo in mono_decompose_vtype_opts (#90832)
* Fix typo in mono_decompose_vtype_opts Without this, if some previous instruction already created a vreg for ins->dest (for example if we are doing multiple passes over the basic block because `restart == TRUE`) we will use an incorrect vreg when decomposing the current VMOVE Fixes #90800 * Only emit an OP_LDTOKEN_FIELD if we loaded a field token This is used by a CreateSpan optimization that needs access to the MonoClassField* For other cases of a bare LDTOKEN (such as hand-written IL that calls LDTOKEN on a type but doesn't follow it up with a call to `GetTypeFromHandle` leave the opcode as a VMOVE (from the `EMIT_NEW_TEMPLOAD` above)) --------- Co-authored-by: Aleksey Kliger <[email protected]>
- Loading branch information