Skip to content

Commit c9b5dd4

Browse files
Expand CreateSpan in T0 (#91403)
1 parent 216dd61 commit c9b5dd4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/coreclr/jit/importercalls.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2551,6 +2551,9 @@ GenTree* Compiler::impIntrinsic(GenTree* newobjThis,
25512551
// This one is just `return true/false`
25522552
case NI_System_Runtime_CompilerServices_RuntimeHelpers_IsKnownConstant:
25532553

2554+
// Not expanding this can lead to noticeable allocations in T0
2555+
case NI_System_Runtime_CompilerServices_RuntimeHelpers_CreateSpan:
2556+
25542557
// We need these to be able to fold "typeof(...) == typeof(...)"
25552558
case NI_System_Type_GetTypeFromHandle:
25562559
case NI_System_Type_op_Equality:

0 commit comments

Comments
 (0)