diff options
author | 정동헌/Common Platform Lab(SR)/Principal Engineer/삼성전자 <dheon.jung@samsung.com> | 2020-06-23 07:44:28 +0900 |
---|---|---|
committer | 이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com> | 2020-06-23 07:44:28 +0900 |
commit | 982bdae7fce02ab9901b051109dacf060a5d1dfb (patch) | |
tree | 4330b51723682e87b99744ff3aaa43a53b301857 /src | |
parent | 188dc96b125236b447094b156e84442defde6cf2 (diff) | |
download | coreclr-982bdae7fce02ab9901b051109dacf060a5d1dfb.tar.gz coreclr-982bdae7fce02ab9901b051109dacf060a5d1dfb.tar.bz2 coreclr-982bdae7fce02ab9901b051109dacf060a5d1dfb.zip |
[Tizen] Force Inline for Generic Methods (#224)submit/tizen/20200622.225420accepted/tizen/unified/20200623.124116
This patch enables more generic method inlining for methods which are not compiled by NI.
Diffstat (limited to 'src')
-rw-r--r-- | src/vm/jitinterface.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vm/jitinterface.cpp b/src/vm/jitinterface.cpp index bf4abe12f5..b26c5baadc 100644 --- a/src/vm/jitinterface.cpp +++ b/src/vm/jitinterface.cpp @@ -6862,6 +6862,17 @@ DWORD CEEInfo::getMethodAttribsInternal (CORINFO_METHOD_HANDLE ftn) } #endif +#if defined(FEATURE_PREJIT) && defined(CROSSGEN_COMPILE) +#ifdef TIZEN_AGGRESSIVE_INLINING_GENERIC + if (!IsReadyToRunCompilation() && pMD->IsIL() && (result & CORINFO_FLG_FORCEINLINE) == 0 && + !pMD->IsTypicalMethodDefinition() && !pMD->IsGenericMethodDefinition() && + Module::GetPreferredZapModuleForMethodDesc(pMD) != pMD->GetLoaderModule()) + { + result |= CORINFO_FLG_FORCEINLINE; + } +#endif +#endif + return result; } |