Fix check for recursive call in the importer. (#13990)
authorEugene Rozenfeld <erozen@microsoft.com>
Fri, 15 Sep 2017 20:34:21 +0000 (13:34 -0700)
committerGitHub <noreply@github.com>
Fri, 15 Sep 2017 20:34:21 +0000 (13:34 -0700)
commit776b2bf39f3ef429d9e92633d3de4337f8b42bfc
tree0cb1509fd04281b0b6e553af56c51bb578269bc2
parent984bcfb3083e1ce944e07e28d259b08ef2e21818
Fix check for recursive call in the importer. (#13990)

The check for recursive call was incorrect when processing an inlineee.
The change had no diffs with jit-diff --frameworks --tests so I added a test where
this change results in a codegen diff: the call to C is inlined with this change but
is not inlined without it.
src/jit/compiler.h
src/jit/importer.cpp
tests/src/JIT/opt/FastTailCall/FastTailCallInlining.cs [new file with mode: 0644]
tests/src/JIT/opt/FastTailCall/FastTailCallInlining.csproj [new file with mode: 0644]