Skip to content

Commit

Permalink
Expand CreateSpan in T0 (#91403)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalPetryka authored Oct 10, 2023
1 parent 216dd61 commit c9b5dd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coreclr/jit/importercalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2551,6 +2551,9 @@ GenTree* Compiler::impIntrinsic(GenTree* newobjThis,
// This one is just `return true/false`
case NI_System_Runtime_CompilerServices_RuntimeHelpers_IsKnownConstant:

// Not expanding this can lead to noticeable allocations in T0
case NI_System_Runtime_CompilerServices_RuntimeHelpers_CreateSpan:

// We need these to be able to fold "typeof(...) == typeof(...)"
case NI_System_Type_GetTypeFromHandle:
case NI_System_Type_op_Equality:
Expand Down

0 comments on commit c9b5dd4

Please sign in to comment.