Fix for a bug in recursive tail call to loop transformation.
authorEugene Rozenfeld <erozen@microsoft.com>
Sat, 19 Dec 2015 01:27:48 +0000 (17:27 -0800)
committerEugene Rozenfeld <erozen@microsoft.com>
Mon, 21 Dec 2015 22:49:50 +0000 (14:49 -0800)
commitf22c51421f7e068b842a62ad02f8ac610eee17f6
treed1f9cade69db3aa0e9e2da0032b505ac09d11d67
parented1867bc8e445806ebe2e05a5d3515787006321d
Fix for a bug in recursive tail call to loop transformation.

The bug affects recursive tail calls where there is both a this arg and
an argument passed in outgoing arg space.

I brought over RecursiveTailCall tests and added TestStackParam test
that was a repro for the bug.
src/jit/morph.cpp
tests/src/JIT/CodeGenBringUpTests/RecursiveTailCall.cs [new file with mode: 0644]
tests/src/JIT/CodeGenBringUpTests/RecursiveTailCall.csproj [new file with mode: 0644]