diff options
author | Andy Ayers <andya@microsoft.com> | 2017-02-13 20:38:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 20:38:56 -0800 |
commit | 9d7bb193efc91352f10e3ae4ed1efb48980b2978 (patch) | |
tree | 2189fac3c02e91f3ae4ad00305a9cb674838257e | |
parent | 80fa6187fdd253a2dbeff11502685fabc928a208 (diff) | |
parent | de8cad748bcd1f1a1bc2bcbc9ce5db154023c4a6 (diff) | |
download | coreclr-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.h | 3 |
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); } //------------------------------------------------------------------------- |