Skip to content

Commit

Permalink
Expand IsReferenceOrContainsReferences in T0 (#104874)
Browse files Browse the repository at this point in the history
This lets the JIT avoid compiling unreachable branches resulting from it.
  • Loading branch information
MichalPetryka authored Jul 14, 2024
1 parent dacf9db commit fda63b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/coreclr/jit/importercalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3234,6 +3234,7 @@ GenTree* Compiler::impIntrinsic(CORINFO_CLASS_HANDLE clsHnd,
case NI_System_Type_IsAssignableFrom:
case NI_System_Type_IsAssignableTo:
case NI_System_Type_get_IsGenericType:
case NI_System_Runtime_CompilerServices_RuntimeHelpers_IsReferenceOrContainsReferences:

// Lightweight intrinsics
case NI_System_String_get_Chars:
Expand Down

0 comments on commit fda63b4

Please sign in to comment.