Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JIT: Allow cloning addresses even before initobj (#79341)
Roslyn emits ldloca + dup + initobj when initializing structs. Normally we clone address trees instead of creating a local for them (which will address expose the local), but we treat this initobj pattern specially. Remove this special treatment. It means we sometimes end up with slightly larger code because we no longer have a register with the address in it (could potentially be fixed by CSE), but avoiding the address exposure seems like the right trade off to me. Fix #42354 Fix #57055
- Loading branch information