Skip to content

Commit

Permalink
Allow inlining for ldsfld + value-type
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed Feb 1, 2023
1 parent 3c47b2c commit c93afc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9156,7 +9156,8 @@ void Compiler::impImportBlockCode(BasicBlock* block)
clsHnd)
{
if ((info.compCompHnd->getTypeForPrimitiveValueClass(clsHnd) == CORINFO_TYPE_UNDEF) &&
!(info.compFlags & CORINFO_FLG_FORCEINLINE))
!(info.compFlags & CORINFO_FLG_FORCEINLINE) &&
!(fieldInfo.fieldFlags & CORINFO_FLG_FIELD_FINAL))
{
// Loading a static valuetype field usually will cause a JitHelper to be called
// for the static base. This will bloat the code.
Expand Down

0 comments on commit c93afc3

Please sign in to comment.