summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Ayers <andya@microsoft.com>2017-02-13 20:38:56 -0800
committerGitHub <noreply@github.com>2017-02-13 20:38:56 -0800
commit9d7bb193efc91352f10e3ae4ed1efb48980b2978 (patch)
tree2189fac3c02e91f3ae4ad00305a9cb674838257e
parent80fa6187fdd253a2dbeff11502685fabc928a208 (diff)
parentde8cad748bcd1f1a1bc2bcbc9ce5db154023c4a6 (diff)
downloadcoreclr-9d7bb193efc91352f10e3ae4ed1efb48980b2978.tar.gz
coreclr-9d7bb193efc91352f10e3ae4ed1efb48980b2978.tar.bz2
coreclr-9d7bb193efc91352f10e3ae4ed1efb48980b2978.zip
Merge pull request #9572 from AndyAyersMS/FixTailCallStress
Jit: fix gtIsRecursiveCall
-rw-r--r--src/jit/compiler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jit/compiler.h b/src/jit/compiler.h
index 7c5565c9c7..259c4cb049 100644
--- a/src/jit/compiler.h
+++ b/src/jit/compiler.h
@@ -2138,9 +2138,10 @@ public:
bool gtIsStaticFieldPtrToBoxedStruct(var_types fieldNodeType, CORINFO_FIELD_HANDLE fldHnd);
// Return true if call is a recursive call; return false otherwise.
+ // Note when inlining, this looks for calls back to the root method.
bool gtIsRecursiveCall(GenTreeCall* call)
{
- return (call->gtCallMethHnd == info.compMethodHnd);
+ return (call->gtCallMethHnd == impInlineRoot()->info.compMethodHnd);
}
//-------------------------------------------------------------------------