summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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
commit982bdae7fce02ab9901b051109dacf060a5d1dfb (patch)
tree4330b51723682e87b99744ff3aaa43a53b301857 /src
parent188dc96b125236b447094b156e84442defde6cf2 (diff)
downloadcoreclr-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.cpp11
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;
}