[release/6.0] Undo struct promotion on "RetInd" code path (#58602)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 7 Sep 2021 17:37:46 +0000 (10:37 -0700)
committerGitHub <noreply@github.com>
Tue, 7 Sep 2021 17:37:46 +0000 (10:37 -0700)
commited7178306720abea00e636058215c630a252abd8
treec6c104e24f51ae469e34c7f875c81ef025ee9f2e
parentdd0ecba8a65dba0fe1ea36f78316ce7e72af4afd
[release/6.0] Undo struct promotion on "RetInd" code path (#58602)

* TOREVERT: small repro case

* Fix the undone struct promotion for return

* Display lclVar number

* Revert "TOREVERT: small repro case"

This reverts commit 9ef80ba45d52257f0b2b33404206ecda3823c92c.

* Add test case

* jit format

* Combine the condition

* Add an assert to catch the missing places

* Remove unneeded variable setting from csproj

Co-authored-by: Kunal Pathak <Kunal.Pathak@microsoft.com>
src/coreclr/jit/clrjit.natvis
src/coreclr/jit/compiler.h
src/coreclr/jit/lclvars.cpp
src/coreclr/jit/morph.cpp
src/tests/JIT/Regression/JitBlue/Runtime_57912/Runtime_57912.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_57912/Runtime_57912.csproj [new file with mode: 0644]