Skip to content

[JitDiff X64] [EgorBo] Remove redundant pinning over static fields/RVA #1485

Open

Description

@MihuBot

Job completed in 17 minutes 18 seconds (remote runner delay: 25 seconds).
dotnet/runtime#119674

Diffs

Found 101 files with textual diffs.

Summary of Code Size diffs:
(Lower is better)

Total bytes of base: 41693632
Total bytes of diff: 41693244
Total bytes of delta: -388 (-0.00 % of base)
Total relative delta: -1.35
    diff is an improvement.
    relative diff is an improvement.


Top file regressions (bytes):
         140 : System.Data.Common.dasm (0.01 % of base)
          28 : System.Private.Xml.dasm (0.00 % of base)

Top file improvements (bytes):
        -329 : System.Private.CoreLib.dasm (-0.00 % of base)
         -66 : System.Net.Sockets.dasm (-0.02 % of base)
         -64 : System.IO.Hashing.dasm (-0.24 % of base)
         -44 : System.Console.dasm (-0.05 % of base)
         -28 : System.Reflection.Metadata.dasm (-0.01 % of base)
         -25 : System.Net.Quic.dasm (-0.02 % of base)

8 total files with Code Size differences (6 improved, 2 regressed), 252 unchanged.

Top method regressions (bytes):
         140 (27.67 % of base) : System.Data.Common.dasm - System.Data.SqlTypes.SqlDateTime:.cctor() (FullOpts)
          28 (14.97 % of base) : System.Private.Xml.dasm - System.Xml.Schema.FacetsChecker:Power(int,int):System.Decimal (FullOpts)

Top method improvements (bytes):
         -84 (-10.54 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:DetermineIdentityAndInner(nint,nint,int,byref,byref,byref) (FullOpts)
         -66 (-47.48 % of base) : System.Net.Sockets.dasm - System.Net.Sockets.UnixDomainSocketEndPoint:.cctor() (FullOpts)
         -54 (-7.54 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ReferenceTrackerHost:IReferenceTrackerHost_GetTrackerTarget(nint,nint,ptr):int (FullOpts)
         -44 (-2.15 % of base) : System.Console.dasm - System.ConsolePal:EnsureInitializedCore() (FullOpts) (2 methods)
         -40 (-5.85 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:ComWeakRefToObject(nint,System.Object):System.Object (FullOpts)
         -38 (-8.17 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers+NativeObjectWrapper:Create(nint,nint,System.Runtime.InteropServices.ComWrappers,System.Object,int,byref):System.Runtime.InteropServices.ComWrappers+NativeObjectWrapper (FullOpts)
         -36 (-31.58 % of base) : System.IO.Hashing.dasm - System.IO.Hashing.XxHashShared:DeriveSecretFromSeed(ptr,ulong) (FullOpts)
         -34 (-4.68 % of base) : System.Private.CoreLib.dasm - System.Convert:ConvertToBase64Array(ptr,ptr,int,int,bool):int (FullOpts)
         -31 (-8.88 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:TryGetComInstance(System.Object,byref):bool (FullOpts)
         -28 (-17.61 % of base) : System.Reflection.Metadata.dasm - System.Reflection.PortableExecutable.PEBuilder:WritePESignature(System.Reflection.Metadata.BlobBuilder) (FullOpts)
         -26 (-5.63 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:TryGetComInterfaceDispatch(nint):ptr (FullOpts)
         -25 (-4.68 % of base) : System.Net.Quic.dasm - System.Net.Quic.MsQuicApi:.ctor(ptr):this (FullOpts)
         -20 (-10.58 % of base) : System.Private.CoreLib.dasm - System.Diagnostics.Tracing.RuntimeEventSourceHelper:GetCpuUsage():double (FullOpts)
         -14 (-5.47 % of base) : System.IO.Hashing.dasm - System.IO.Hashing.XxHash128:HashLengthOver240(ptr,uint,ulong):System.IO.Hashing.XxHash128+Hash128 (FullOpts)
         -14 (-6.70 % of base) : System.IO.Hashing.dasm - System.IO.Hashing.XxHash3:HashLengthOver240(ptr,uint,ulong):ulong (FullOpts)
          -2 (-0.35 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.Marshalling.ComVariant:Create[System.__Canon](System.__Canon):System.Runtime.InteropServices.Marshalling.ComVariant (FullOpts)

Top method regressions (percentages):
         140 (27.67 % of base) : System.Data.Common.dasm - System.Data.SqlTypes.SqlDateTime:.cctor() (FullOpts)
          28 (14.97 % of base) : System.Private.Xml.dasm - System.Xml.Schema.FacetsChecker:Power(int,int):System.Decimal (FullOpts)

Top method improvements (percentages):
         -66 (-47.48 % of base) : System.Net.Sockets.dasm - System.Net.Sockets.UnixDomainSocketEndPoint:.cctor() (FullOpts)
         -36 (-31.58 % of base) : System.IO.Hashing.dasm - System.IO.Hashing.XxHashShared:DeriveSecretFromSeed(ptr,ulong) (FullOpts)
         -28 (-17.61 % of base) : System.Reflection.Metadata.dasm - System.Reflection.PortableExecutable.PEBuilder:WritePESignature(System.Reflection.Metadata.BlobBuilder) (FullOpts)
         -20 (-10.58 % of base) : System.Private.CoreLib.dasm - System.Diagnostics.Tracing.RuntimeEventSourceHelper:GetCpuUsage():double (FullOpts)
         -84 (-10.54 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:DetermineIdentityAndInner(nint,nint,int,byref,byref,byref) (FullOpts)
         -31 (-8.88 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:TryGetComInstance(System.Object,byref):bool (FullOpts)
         -38 (-8.17 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers+NativeObjectWrapper:Create(nint,nint,System.Runtime.InteropServices.ComWrappers,System.Object,int,byref):System.Runtime.InteropServices.ComWrappers+NativeObjectWrapper (FullOpts)
         -54 (-7.54 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ReferenceTrackerHost:IReferenceTrackerHost_GetTrackerTarget(nint,nint,ptr):int (FullOpts)
         -14 (-6.70 % of base) : System.IO.Hashing.dasm - System.IO.Hashing.XxHash3:HashLengthOver240(ptr,uint,ulong):ulong (FullOpts)
         -40 (-5.85 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:ComWeakRefToObject(nint,System.Object):System.Object (FullOpts)
         -26 (-5.63 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:TryGetComInterfaceDispatch(nint):ptr (FullOpts)
         -14 (-5.47 % of base) : System.IO.Hashing.dasm - System.IO.Hashing.XxHash128:HashLengthOver240(ptr,uint,ulong):System.IO.Hashing.XxHash128+Hash128 (FullOpts)
         -25 (-4.68 % of base) : System.Net.Quic.dasm - System.Net.Quic.MsQuicApi:.ctor(ptr):this (FullOpts)
         -34 (-4.68 % of base) : System.Private.CoreLib.dasm - System.Convert:ConvertToBase64Array(ptr,ptr,int,int,bool):int (FullOpts)
         -44 (-2.15 % of base) : System.Console.dasm - System.ConsolePal:EnsureInitializedCore() (FullOpts) (2 methods)
          -2 (-0.35 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.Marshalling.ComVariant:Create[System.__Canon](System.__Canon):System.Runtime.InteropServices.Marshalling.ComVariant (FullOpts)

18 total methods with Code Size differences (16 improved, 2 regressed), 250552 unchanged.

--------------------------------------------------------------------------------

Artifacts:

Activity

  1. MihuBot commented on Sep 13, 2025

    @MihuBot
    OwnerAuthor

    Top method regressions

    140 (27.67 % of base) - System.Data.SqlTypes.SqlDateTime:.cctor()
     ; Assembly listing for method System.Data.SqlTypes.SqlDateTime:.cctor() (FullOpts)
     ; Emitting BLENDED_CODE for generic X64 + VEX + EVEX on Unix
     ; FullOpts code
     ; optimized code
     ; rbp based frame
     ; partially interruptible
     ; No PGO data
     ; 0 inlinees with PGO data; 20 single block inlinees; 4 inlinees without PGO data
     ; Final local variable assignments
     ;
     ;* V00 loc0         [V00    ] (  0,  0   )  struct ( 8) zero-ref    ld-addr-op <System.DateTime>
     ;# V01 OutArgs      [V01    ] (  1,  1   )  struct ( 0) [rsp+0x00]  do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
     ;* V02 tmp1         [V02    ] (  0,  0   )  struct ( 8) zero-ref    ld-addr-op "NewObj constructor temp" <System.DateTime>
     ;* V03 tmp2         [V03    ] (  0,  0   )  struct ( 8) zero-ref    ld-addr-op "NewObj constructor temp" <System.DateTime>
     ;  V04 tmp3         [V04,T00] ( 10, 20   )     ref  ->  rax         class-hnd exact single-def "NewArr temp" <System.String[]>
     ;* V05 tmp4         [V05    ] (  0,  0   )  struct (16) zero-ref    ld-addr-op "NewObj constructor temp" <System.Data.SqlTypes.SqlDateTime>
     ;* V06 tmp5         [V06    ] (  0,  0   )  struct (16) zero-ref    ld-addr-op "NewObj constructor temp" <System.Data.SqlTypes.SqlDateTime>
     ;* V07 tmp6         [V07    ] (  0,  0   )  struct (16) zero-ref    ld-addr-op "NewObj constructor temp" <System.Data.SqlTypes.SqlDateTime>
     ;* V08 tmp7         [V08    ] (  0,  0   )  struct (16) zero-ref    <System.ReadOnlySpan`1[uint]>
     ;* V09 tmp8         [V09    ] (  0,  0   )  struct (16) zero-ref    ld-addr-op "Inline stloc first use temp" <System.ReadOnlySpan`1[uint]>
     ;* V10 tmp9         [V10    ] (  0,  0   )  struct (16) zero-ref    "ReadOnlySpan<T> for CreateSpan<T>" <System.ReadOnlySpan`1[uint]>
     ;* V11 tmp10        [V11    ] (  0,  0   )     int  ->  zero-ref    "dup spill"
     ;* V12 tmp11        [V12    ] (  0,  0   )     int  ->  zero-ref    "Inline stloc first use temp"
     ;* V13 tmp12        [V13    ] (  0,  0   )  struct (16) zero-ref    <System.ReadOnlySpan`1[uint]>
     ;* V14 tmp13        [V14    ] (  0,  0   )  struct (16) zero-ref    ld-addr-op "Inline stloc first use temp" <System.ReadOnlySpan`1[uint]>
     ;* V15 tmp14        [V15    ] (  0,  0   )  struct (16) zero-ref    "ReadOnlySpan<T> for CreateSpan<T>" <System.ReadOnlySpan`1[uint]>
     ;* V16 tmp15        [V16    ] (  0,  0   )     int  ->  zero-ref    "dup spill"
     ;* V17 tmp16        [V17    ] (  0,  0   )     int  ->  zero-ref    "Inline stloc first use temp"
     ;* V18 tmp17        [V18    ] (  0,  0   )  struct ( 8) zero-ref    ld-addr-op "Inlining Arg" <System.DateTime>
     ;* V19 tmp18        [V19    ] (  0,  0   )    long  ->  zero-ref    "impAppendStmt"
     ;* V20 tmp19        [V20    ] (  0,  0   )  struct ( 8) zero-ref    ld-addr-op "NewObj constructor temp" <System.TimeSpan>
     ;* V21 tmp20        [V21    ] (  0,  0   )    long  ->  zero-ref    "Inlining Arg"
     ;* V22 tmp21        [V22    ] (  0,  0   )  struct ( 8) zero-ref    ld-addr-op "Inlining Arg" <System.DateTime>
     ;* V23 tmp22        [V23    ] (  0,  0   )    long  ->  zero-ref    "impAppendStmt"
     ;* V24 tmp23        [V24    ] (  0,  0   )  struct ( 8) zero-ref    ld-addr-op "NewObj constructor temp" <System.TimeSpan>
     ;* V25 tmp24        [V25    ] (  0,  0   )    long  ->  zero-ref    "Inlining Arg"
    -;* V26 tmp25        [V26    ] (  0,  0   )     ref  ->  zero-ref    class-hnd exact single-def "NewObj constructor temp" <System.OverflowException>
    -;  V27 tmp26        [V27,T02] (  3,  6   )     int  ->  rdi         "Inlining Arg"
    -;  V28 tmp27        [V28,T18] (  3,  0   )     ref  ->  rbx         class-hnd exact single-def "NewObj constructor temp" <System.OverflowException>
    +;  V26 tmp25        [V26,T18] (  3,  0   )     ref  ->  rbx         class-hnd exact single-def "NewObj constructor temp" <System.OverflowException>
    +;  V27 tmp26        [V27,T01] (  3,  6   )     int  ->  rdi         "Inlining Arg"
    +;  V28 tmp27        [V28,T19] (  3,  0   )     ref  ->  rbx         class-hnd exact single-def "NewObj constructor temp" <System.OverflowException>
     ;* V29 tmp28        [V29    ] (  0,  0   )    long  ->  zero-ref    "field V00._dateData (fldOffset=0x0)" P-INDEP
    -;* V30 tmp29        [V30,T14] (  0,  0   )    long  ->  zero-ref    "field V02._dateData (fldOffset=0x0)" P-INDEP
    -;* V31 tmp30        [V31,T15] (  0,  0   )    long  ->  zero-ref    "field V03._dateData (fldOffset=0x0)" P-INDEP
    +;* V30 tmp29        [V30,T16] (  0,  0   )    long  ->  zero-ref    "field V02._dateData (fldOffset=0x0)" P-INDEP
    +;* V31 tmp30        [V31,T17] (  0,  0   )    long  ->  zero-ref    "field V03._dateData (fldOffset=0x0)" P-INDEP
     ;* V32 tmp31        [V32    ] (  0,  0   )   ubyte  ->  zero-ref    "field V05.m_fNotNull (fldOffset=0x0)" P-INDEP
     ;* V33 tmp32        [V33    ] (  0,  0   )     int  ->  zero-ref    "field V05.m_day (fldOffset=0x4)" P-INDEP
     ;* V34 tmp33        [V34    ] (  0,  0   )     int  ->  zero-ref    "field V05.m_time (fldOffset=0x8)" P-INDEP
     ;* V35 tmp34        [V35    ] (  0,  0   )   ubyte  ->  zero-ref    "field V06.m_fNotNull (fldOffset=0x0)" P-INDEP
     ;* V36 tmp35        [V36    ] (  0,  0   )     int  ->  zero-ref    "field V06.m_day (fldOffset=0x4)" P-INDEP
     ;* V37 tmp36        [V37    ] (  0,  0   )     int  ->  zero-ref    "field V06.m_time (fldOffset=0x8)" P-INDEP
     ;* V38 tmp37        [V38    ] (  0,  0   )   ubyte  ->  zero-ref    "field V07.m_fNotNull (fldOffset=0x0)" P-INDEP
     ;* V39 tmp38        [V39    ] (  0,  0   )     int  ->  zero-ref    "field V07.m_day (fldOffset=0x4)" P-INDEP
     ;* V40 tmp39        [V40    ] (  0,  0   )     int  ->  zero-ref    "field V07.m_time (fldOffset=0x8)" P-INDEP
     ;* V41 tmp40        [V41    ] (  0,  0   )   byref  ->  zero-ref    "field V08._reference (fldOffset=0x0)" P-INDEP
     ;* V42 tmp41        [V42    ] (  0,  0   )     int  ->  zero-ref    "field V08._length (fldOffset=0x8)" P-INDEP
     ;* V43 tmp42        [V43    ] (  0,  0   )   byref  ->  zero-ref    single-def "field V09._reference (fldOffset=0x0)" P-INDEP
     ;* V44 tmp43        [V44    ] (  0,  0   )     int  ->  zero-ref    "field V09._length (fldOffset=0x8)" P-INDEP
     ;* V45 tmp44        [V45    ] (  0,  0   )   byref  ->  zero-ref    single-def "field V10._reference (fldOffset=0x0)" P-INDEP
     ;* V46 tmp45        [V46    ] (  0,  0   )     int  ->  zero-ref    "field V10._length (fldOffset=0x8)" P-INDEP
     ;* V47 tmp46        [V47    ] (  0,  0   )   byref  ->  zero-ref    "field V13._reference (fldOffset=0x0)" P-INDEP
     ;* V48 tmp47        [V48    ] (  0,  0   )     int  ->  zero-ref    "field V13._length (fldOffset=0x8)" P-INDEP
     ;* V49 tmp48        [V49    ] (  0,  0   )   byref  ->  zero-ref    single-def "field V14._reference (fldOffset=0x0)" P-INDEP
     ;* V50 tmp49        [V50    ] (  0,  0   )     int  ->  zero-ref    "field V14._length (fldOffset=0x8)" P-INDEP
     ;* V51 tmp50        [V51    ] (  0,  0   )   byref  ->  zero-ref    single-def "field V15._reference (fldOffset=0x0)" P-INDEP
     ;* V52 tmp51        [V52    ] (  0,  0   )     int  ->  zero-ref    "field V15._length (fldOffset=0x8)" P-INDEP
    -;* V53 tmp52        [V53,T16] (  0,  0   )    long  ->  zero-ref    "field V18._dateData (fldOffset=0x0)" P-INDEP
    -;  V54 tmp53        [V54,T11] (  2,  2   )    long  ->  rdi         "field V20._ticks (fldOffset=0x0)" P-INDEP
    -;* V55 tmp54        [V55,T17] (  0,  0   )    long  ->  zero-ref    "field V22._dateData (fldOffset=0x0)" P-INDEP
    -;  V56 tmp55        [V56,T12] (  2,  2   )    long  ->  rdi         "field V24._ticks (fldOffset=0x0)" P-INDEP
    -;  V57 tmp56        [V57,T19] (  2,  0   )     ref  ->  rsi         single-def "argument with side effect"
    -;* V58 tmp57        [V58    ] (  0,  0   )     ref  ->  zero-ref    single-def "argument with side effect"
    -;  V59 cse0         [V59,T06] (  3,  3   )     int  ->  rdi         "CSE #08: aggressive"
    -;  V60 cse1         [V60,T07] (  3,  3   )     int  ->  rdi         "CSE #03: aggressive"
    -;  V61 cse2         [V61,T08] (  3,  3   )     int  ->  rdi         "CSE #05: aggressive"
    -;  V62 cse3         [V62,T01] (  4,  4   )    long  ->  rsi         "CSE #06: aggressive"
    -;  V63 cse4         [V63,T03] (  4,  4   )    long  ->  rdi         "CSE #11: aggressive"
    -;  V64 cse5         [V64,T04] (  4,  4   )    long  ->  rax         "CSE #14: aggressive"
    -;  V65 cse6         [V65,T05] (  4,  4   )    long  ->  rdi         "CSE #15: aggressive"
    -;  V66 cse7         [V66,T09] (  3,  3   )    long  ->  rdi         "CSE #01: aggressive"
    -;* V67 cse8         [V67,T13] (  0,  0   )   byref  ->  zero-ref    "CSE #09: aggressive"
    -;  V68 cse9         [V68,T10] (  3,  3   )    long  ->  rbx         "CSE #12: aggressive"
    +;  V53 tmp52        [V53,T11] (  2,  2   )    long  ->  rsi         "field V18._dateData (fldOffset=0x0)" P-INDEP
    +;  V54 tmp53        [V54,T12] (  2,  2   )    long  ->  rax         "field V20._ticks (fldOffset=0x0)" P-INDEP
    +;  V55 tmp54        [V55,T13] (  2,  2   )    long  ->  rdi         "field V22._dateData (fldOffset=0x0)" P-INDEP
    +;  V56 tmp55        [V56,T14] (  2,  2   )    long  ->  rsi         "field V24._ticks (fldOffset=0x0)" P-INDEP
    +;  V57 tmp56        [V57,T20] (  2,  0   )     ref  ->  rsi         single-def "argument with side effect"
    +;  V58 tmp57        [V58,T21] (  2,  0   )     ref  ->  rsi         single-def "argument with side effect"
    +;  V59 cse0         [V59,T07] (  3,  3   )     int  ->  rdi         "CSE #03: aggressive"
    +;  V60 cse1         [V60,T08] (  3,  3   )     int  ->  rdi         "CSE #05: aggressive"
    +;  V61 cse2         [V61,T02] (  4,  4   )    long  ->  rdi         "CSE #08: aggressive"
    +;  V62 cse3         [V62,T03] (  4,  4   )    long  ->  rbx         "CSE #09: aggressive"
    +;  V63 cse4         [V63,T04] (  4,  4   )    long  ->  rdi         "CSE #10: aggressive"
    +;  V64 cse5         [V64,T05] (  4,  4   )    long  ->  rax         "CSE #12: aggressive"
    +;  V65 cse6         [V65,T06] (  4,  4   )    long  ->  rdi         "CSE #13: aggressive"
    +;  V66 cse7         [V66,T09] (  3,  3   )    long  ->  rdi         "CSE #01: moderate"
    +;  V67 cse8         [V67,T10] (  3,  3   )    long  ->  rsi         "CSE #06: moderate"
    +;* V68 cse9         [V68,T15] (  0,  0   )   byref  ->  zero-ref    "CSE #07: moderate"
     ;
     ; Lcl frame size = 8
     
     G_M31479_IG01:
            push     rbp
            push     rbx
            push     rax
            lea      rbp, [rsp+0x10]
     						;; size=8 bbWeight=1 PerfScore 3.50
     G_M31479_IG02:
            mov      rdi, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:SQLTicksPerSecond
            mov      dword ptr [rdi], 300
            imul     edi, dword ptr [rdi], 60
            mov      rsi, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:SQLTicksPerMinute
            mov      dword ptr [rsi], edi
            imul     edi, edi, 60
            mov      rsi, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:SQLTicksPerHour
            mov      dword ptr [rsi], edi
            lea      edi, [rdi+2*rdi]
            shl      edi, 3
            mov      rsi, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:s_SQLTicksPerDay
            mov      dword ptr [rsi], edi
    -       mov      rsi, 0xD1FFAB1E
    -       mov      rax, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:s_SQLBaseDate
    -       mov      qword ptr [rax], rsi
    -       mov      rsi, 0xD1FFAB1E      ; static handle
    -       mov      rsi, qword ptr [rsi]
    +       mov      rdi, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:s_SQLBaseDate
    +       mov      rax, 0xD1FFAB1E
    +       mov      qword ptr [rdi], rax
    +       mov      rax, 0xD1FFAB1E      ; static handle
    +       mov      rcx, 0xD1FFAB1E
    +       and      rcx, qword ptr [rax]
            mov      rax, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:s_SQLBaseDateTicks
    -       mov      qword ptr [rax], rsi
    -       dec      edi
    +       mov      qword ptr [rax], rcx
    +       mov      esi, dword ptr [rsi]
    +       dec      esi
            mov      rbx, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:s_maxTime
    -       mov      dword ptr [rbx], edi
    -       mov      rdi, 0xD1FFAB1E
    -       sub      rdi, rsi
    -       mov      rax, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:s_minTimeSpan
    -       mov      qword ptr [rax], rdi
    -       mov      rdi, 0xD1FFAB1E
    -       sub      rdi, rsi
    -       mov      rsi, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:s_maxTimeSpan
    -       mov      qword ptr [rsi], rdi
    +       mov      dword ptr [rbx], esi
    +       mov      rsi, qword ptr [rdi]
    +       mov      rax, 0xD1FFAB1E
    +       and      rsi, rax
    +       mov      rax, 0xD1FFAB1E
    +       sub      rax, rsi
    +       mov      rsi, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:s_minTimeSpan
    +       mov      qword ptr [rsi], rax
    +       mov      rdi, qword ptr [rdi]
    +       mov      rsi, 0xD1FFAB1E
    +       and      rdi, rsi
    +       mov      rsi, 0xD1FFAB1E
    +       sub      rsi, rdi
    +       mov      rdi, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:s_maxTimeSpan
    +       mov      qword ptr [rdi], rsi
            mov      rdi, 0xD1FFAB1E      ; System.String[]
            mov      esi, 8
            call     CORINFO_HELP_NEWARR_1_PTR
            mov      rdi, 0xD1FFAB1E      ; 'MMM d yyyy hh:mm:ss:ffftt'
            mov      gword ptr [rax+0x10], rdi
            mov      rdi, 0xD1FFAB1E      ; 'MMM d yyyy hh:mm:ss:fff'
            mov      gword ptr [rax+0x18], rdi
            mov      rdi, 0xD1FFAB1E      ; 'd MMM yyyy hh:mm:ss:ffftt'
            mov      gword ptr [rax+0x20], rdi
            mov      rdi, 0xD1FFAB1E      ; 'd MMM yyyy hh:mm:ss:fff'
            mov      gword ptr [rax+0x28], rdi
            mov      rdi, 0xD1FFAB1E      ; 'hh:mm:ss:ffftt'
            mov      gword ptr [rax+0x30], rdi
            mov      rdi, 0xD1FFAB1E      ; 'hh:mm:ss:fff'
    +						;; size=323 bbWeight=1 PerfScore 39.25
    +G_M31479_IG03:
            mov      gword ptr [rax+0x38], rdi
            mov      rdi, 0xD1FFAB1E      ; 'yyMMdd'
            mov      gword ptr [rax+0x40], rdi
            mov      rdi, 0xD1FFAB1E      ; 'yyyyMMdd'
            mov      gword ptr [rax+0x48], rdi
            mov      rdi, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:s_dateTimeFormats
            mov      rsi, rax
            call     CORINFO_HELP_ASSIGN_REF
    -						;; size=329 bbWeight=1 PerfScore 36.00
    -G_M31479_IG03:
    +       cmp      dword ptr [rbx], 0
    +       jl       SHORT G_M31479_IG06
            mov      rdi, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:MinValue
            mov      byte  ptr [rdi], 1
            mov      dword ptr [rdi+0x04], -0xD1BA
            xor      eax, eax
            mov      dword ptr [rdi+0x08], eax
            mov      edi, dword ptr [rbx]
            test     edi, edi
    -       jl       SHORT G_M31479_IG06
    +       jl       G_M31479_IG07
            mov      rax, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:MaxValue
            mov      byte  ptr [rax], 1
            mov      dword ptr [rax+0x04], 0xD1FFAB1E
            mov      dword ptr [rax+0x08], edi
            mov      rdi, 0xD1FFAB1E      ; data for System.Data.SqlTypes.SqlDateTime:Null
            mov      byte  ptr [rdi], 0
            xor      eax, eax
            mov      dword ptr [rdi+0x04], eax
    -						;; size=72 bbWeight=1 PerfScore 12.50
    +						;; size=131 bbWeight=1 PerfScore 21.50
     G_M31479_IG04:
            mov      dword ptr [rdi+0x08], eax
     						;; size=3 bbWeight=1 PerfScore 1.00
     G_M31479_IG05:
            add      rsp, 8
            pop      rbx
            pop      rbp
            ret      
     						;; size=7 bbWeight=1 PerfScore 2.25
     G_M31479_IG06:
            mov      rdi, 0xD1FFAB1E      ; System.OverflowException
            call     CORINFO_HELP_NEWSFAST
            mov      rbx, rax
            mov      edi, 0x5EFE
            mov      rsi, 0xD1FFAB1E
            mov      rax, 0xD1FFAB1E      ; code for CORINFO_HELP_STRCNS
            call     [rax]CORINFO_HELP_STRCNS
            mov      rdi, rax
            mov      rax, 0xD1FFAB1E      ; code for System.SR:GetResourceString(System.String):System.String
            call     [rax]System.SR:GetResourceString(System.String):System.String
            mov      rsi, rax
            mov      rdi, rbx
            mov      rax, 0xD1FFAB1E      ; code for System.OverflowException:.ctor(System.String):this
            call     [rax]System.OverflowException:.ctor(System.String):this
            mov      rdi, rbx
            call     CORINFO_HELP_THROW
            int3     
     						;; size=87 bbWeight=0 PerfScore 0.00
    +G_M31479_IG07:
    +       mov      rdi, 0xD1FFAB1E      ; System.OverflowException
    +       call     CORINFO_HELP_NEWSFAST
    +       mov      rbx, rax
    +       mov      edi, 0x5EFE
    +       mov      rsi, 0xD1FFAB1E
    +       mov      rax, 0xD1FFAB1E      ; code for CORINFO_HELP_STRCNS
    +       call     [rax]CORINFO_HELP_STRCNS
    +       mov      rdi, rax
    +       mov      rax, 0xD1FFAB1E      ; code for System.SR:GetResourceString(System.String):System.String
    +       call     [rax]System.SR:GetResourceString(System.String):System.String
    +       mov      rsi, rax
    +       mov      rdi, rbx
    +       mov      rax, 0xD1FFAB1E      ; code for System.OverflowException:.ctor(System.String):this
    +       call     [rax]System.OverflowException:.ctor(System.String):this
    +       mov      rdi, rbx
    +       call     CORINFO_HELP_THROW
    +       int3     
    +						;; size=87 bbWeight=0 PerfScore 0.00
     
    -; Total bytes of code 506, prolog size 8, PerfScore 55.25, instruction count 94, allocated bytes for code 506 (MethodHash=bd4c8508) for method System.Data.SqlTypes.SqlDateTime:.cctor() (FullOpts)
    +; Total bytes of code 646, prolog size 8, PerfScore 67.50, instruction count 121, allocated bytes for code 646 (MethodHash=bd4c8508) for method System.Data.SqlTypes.SqlDateTime:.cctor() (FullOpts)
     ; ============================================================
    28 (14.97 % of base) - System.Xml.Schema.FacetsChecker:Power(int,int):System.Decimal
     ; Assembly listing for method System.Xml.Schema.FacetsChecker:Power(int,int):System.Decimal (FullOpts)
     ; Emitting BLENDED_CODE for generic X64 + VEX + EVEX on Unix
     ; FullOpts code
     ; optimized code
     ; rbp based frame
     ; partially interruptible
     ; No PGO data
     ; 0 inlinees with PGO data; 4 single block inlinees; 4 inlinees without PGO data
     ; Final local variable assignments
     ;
     ;  V00 arg0         [V00,T06] (  4,  3.50)     int  ->  rdi         single-def
     ;  V01 arg1         [V01,T05] (  5,  4   )     int  ->  rsi         single-def
     ;* V02 loc0         [V02    ] (  0,  0   )  struct (16) zero-ref    do-not-enreg[SR] multireg-ret <System.Decimal>
     ;* V03 loc1         [V03    ] (  0,  0   )  struct (16) zero-ref    <System.Decimal>
     ;* V04 loc2         [V04,T12] (  0,  0   )     int  ->  zero-ref   
     ;# V05 OutArgs      [V05    ] (  1,  1   )  struct ( 0) [rsp+0x00]  do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
     ;* V06 tmp1         [V06    ] (  0,  0   )  struct (16) zero-ref    do-not-enreg[SFR] multireg-ret ld-addr-op "NewObj constructor temp" <System.Decimal>
     ;* V07 tmp2         [V07    ] (  0,  0   )  struct (16) zero-ref    ld-addr-op "NewObj constructor temp" <System.Decimal>
     ;  V08 tmp3         [V08,T04] (  4,  7   )     int  ->  rax         "Inlining Arg"
     ;* V09 tmp4         [V09    ] (  0,  0   )     int  ->  zero-ref    ld-addr-op "Inlining Arg"
     ;* V10 tmp5         [V10    ] (  0,  0   )     int  ->  zero-ref    "Inline return value spill temp"
     ;  V11 tmp6         [V11    ] (  7, 56   )  struct (16) [rbp-0x38]  do-not-enreg[XS] addr-exposed ld-addr-op "Inlining Arg" <System.Decimal>
     ;  V12 tmp7         [V12    ] (  4, 32   )  struct (16) [rbp-0x48]  do-not-enreg[XS] addr-exposed ld-addr-op "Inlining Arg" <System.Decimal>
     ;* V13 tmp8         [V13    ] (  0,  0   )   byref  ->  zero-ref    "impAppendStmt"
     ;  V14 tmp9         [V14,T07] (  2,  5   )     int  ->  r14         "field V03._flags (fldOffset=0x0)" P-INDEP
     ;* V15 tmp10        [V15,T11] (  0,  0   )     int  ->  zero-ref    "field V03._hi32 (fldOffset=0x4)" P-INDEP
     ;  V16 tmp11        [V16,T08] (  2,  5   )    long  ->  r13         "field V03._lo64 (fldOffset=0x8)" P-INDEP
     ;  V17 tmp12        [V17,T09] (  3,  2   )     int  ->  r14         "field V07._flags (fldOffset=0x0)" P-INDEP
     ;* V18 tmp13        [V18    ] (  0,  0   )     int  ->  zero-ref    "field V07._hi32 (fldOffset=0x4)" P-INDEP
     ;  V19 tmp14        [V19,T10] (  2,  2   )    long  ->  r13         "field V07._lo64 (fldOffset=0x8)" P-INDEP
     ;  V20 tmp15        [V20    ] (  3, 16   )     int  ->  [rbp-0x38]  do-not-enreg[X] addr-exposed "field V11._flags (fldOffset=0x0)" P-DEP
     ;  V21 tmp16        [V21    ] (  3, 16   )     int  ->  [rbp-0x34]  do-not-enreg[X] addr-exposed "field V11._hi32 (fldOffset=0x4)" P-DEP
     ;  V22 tmp17        [V22    ] (  3, 16   )    long  ->  [rbp-0x30]  do-not-enreg[X] addr-exposed "field V11._lo64 (fldOffset=0x8)" P-DEP
     ;  V23 tmp18        [V23    ] (  2, 12   )     int  ->  [rbp-0x48]  do-not-enreg[X] addr-exposed "field V12._flags (fldOffset=0x0)" P-DEP
     ;  V24 tmp19        [V24    ] (  2, 12   )     int  ->  [rbp-0x44]  do-not-enreg[X] addr-exposed "field V12._hi32 (fldOffset=0x4)" P-DEP
     ;  V25 tmp20        [V25    ] (  2, 12   )    long  ->  [rbp-0x40]  do-not-enreg[X] addr-exposed "field V12._lo64 (fldOffset=0x8)" P-DEP
     ;* V26 tmp21        [V26    ] (  0,  0   )     int  ->  zero-ref    "V06.[000..004)"
     ;* V27 tmp22        [V27    ] (  0,  0   )     int  ->  zero-ref    "V06.[004..008)"
     ;* V28 tmp23        [V28    ] (  0,  0   )    long  ->  zero-ref    "V06.[008..016)"
     ;  V29 tmp24        [V29,T01] (  4,  9.50)     int  ->  rbx         "V02.[000..004)"
     ;  V30 tmp25        [V30,T02] (  4,  9.50)     int  ->  r15         "V02.[004..008)"
     ;  V31 tmp26        [V31,T03] (  4,  9.50)    long  ->  rdx         "V02.[008..016)"
     ;  V32 rat0         [V32,T00] (  4, 12.50)     int  ->  r12         "Trip count IV"
     ;
     ; Lcl frame size = 40
     
     G_M55036_IG01:
            push     rbp
            push     r15
            push     r14
            push     r13
            push     r12
            push     rbx
            sub      rsp, 40
            lea      rbp, [rsp+0x50]
     						;; size=19 bbWeight=1 PerfScore 6.75
     G_M55036_IG02:
    -       xor      ebx, ebx
    -       xor      r15d, r15d
    -       mov      edx, 1
    +       mov      rax, 0xD1FFAB1E
    +       mov      ebx, dword ptr [rax]
    +       mov      rax, 0xD1FFAB1E
    +       mov      r15d, dword ptr [rax]
    +       mov      rax, 0xD1FFAB1E
    +       mov      rdx, qword ptr [rax]
            mov      eax, edi
            test     eax, eax
            jge      SHORT G_M55036_IG04
    -						;; size=16 bbWeight=1 PerfScore 2.25
    +						;; size=44 bbWeight=1 PerfScore 8.25
     G_M55036_IG03:
            mov      r14d, 0xD1FFAB1E
            mov      eax, edi
            neg      eax
            jmp      SHORT G_M55036_IG05
     						;; size=12 bbWeight=0.50 PerfScore 1.38
     G_M55036_IG04:
            xor      r14d, r14d
     						;; size=3 bbWeight=0.50 PerfScore 0.12
     G_M55036_IG05:
            mov      r13d, eax
            cmp      esi, 28
            jg       SHORT G_M55036_IG10
     						;; size=8 bbWeight=1 PerfScore 1.50
     G_M55036_IG06:
            test     esi, esi
            jle      SHORT G_M55036_IG08
            mov      r12d, esi
     						;; size=7 bbWeight=0.50 PerfScore 0.75
     G_M55036_IG07:
            mov      dword ptr [rbp-0x38], ebx
            mov      dword ptr [rbp-0x34], r15d
            mov      qword ptr [rbp-0x30], rdx
            mov      dword ptr [rbp-0x48], r14d
            xor      edi, edi
            mov      dword ptr [rbp-0x44], edi
            mov      qword ptr [rbp-0x40], r13
            lea      rdi, [rbp-0x38]
            lea      rsi, [rbp-0x48]
            mov      rax, 0xD1FFAB1E      ; code for System.Decimal+DecCalc:VarDecMul(byref,byref)
            call     [rax]System.Decimal+DecCalc:VarDecMul(byref,byref)
            mov      ebx, dword ptr [rbp-0x38]
            mov      r15d, dword ptr [rbp-0x34]
            mov      rdx, qword ptr [rbp-0x30]
            dec      r12d
            jne      SHORT G_M55036_IG07
     						;; size=60 bbWeight=4 PerfScore 59.00
     G_M55036_IG08:
            mov      eax, r15d
            shl      rax, 32
            mov      ecx, ebx
            or       rax, rcx
     						;; size=12 bbWeight=0.50 PerfScore 0.62
     G_M55036_IG09:
            add      rsp, 40
            pop      rbx
            pop      r12
            pop      r13
            pop      r14
            pop      r15
            pop      rbp
            ret      
     						;; size=15 bbWeight=0.50 PerfScore 2.12
     G_M55036_IG10:
            mov      rdx, -1
            mov      rax, 0xD1FFAB1E
     						;; size=20 bbWeight=0.50 PerfScore 0.25
     G_M55036_IG11:
            add      rsp, 40
            pop      rbx
            pop      r12
            pop      r13
            pop      r14
            pop      r15
            pop      rbp
            ret      
     						;; size=15 bbWeight=0.50 PerfScore 2.12
     
    -; Total bytes of code 187, prolog size 19, PerfScore 76.88, instruction count 63, allocated bytes for code 187 (MethodHash=61652903) for method System.Xml.Schema.FacetsChecker:Power(int,int):System.Decimal (FullOpts)
    +; Total bytes of code 215, prolog size 19, PerfScore 82.88, instruction count 66, allocated bytes for code 215 (MethodHash=61652903) for method System.Xml.Schema.FacetsChecker:Power(int,int):System.Decimal (FullOpts)
     ; ============================================================
  2. MihuBot commented on Sep 13, 2025

    @MihuBot
    OwnerAuthor

    Top method improvements

    -84 (-10.54 % of base) - System.Runtime.InteropServices.ComWrappers:DetermineIdentityAndInner(nint,nint,int,byref,byref,byref)
     ; Assembly listing for method System.Runtime.InteropServices.ComWrappers:DetermineIdentityAndInner(nint,nint,int,byref,byref,byref) (FullOpts)
     ; Emitting BLENDED_CODE for generic X64 + VEX + EVEX on Unix
     ; FullOpts code
     ; optimized code
     ; rbp based frame
     ; partially interruptible
     ; No PGO data
     ; 0 inlinees with PGO data; 3 single block inlinees; 5 inlinees without PGO data
     ; Final local variable assignments
     ;
     ;  V00 arg0         [V00,T03] (  6,  4.50)    long  ->  r15         single-def
     ;  V01 arg1         [V01,T04] (  4,  4   )    long  ->  r14         single-def
     ;  V02 arg2         [V02,T06] (  4,  3.50)     int  ->  r12         single-def
    -;  V03 arg3         [V03,T02] (  7,  4.50)   byref  ->  [rbp-0xA8]  single-def
    -;  V04 arg4         [V04,T05] (  4,  3.50)   byref  ->  [rbp-0xB0]  single-def
    -;  V05 arg5         [V05,T07] (  4,  3   )   byref  ->  [rbp-0xB8]  single-def
    +;  V03 arg3         [V03,T02] (  7,  4.50)   byref  ->  [rbp-0x90]  single-def
    +;  V04 arg4         [V04,T05] (  4,  3.50)   byref  ->  [rbp-0x98]  single-def
    +;  V05 arg5         [V05,T07] (  4,  3   )   byref  ->  [rbp-0xA0]  single-def
     ;  V06 loc0         [V06,T01] ( 12,  6.50)    long  ->  [rbp-0x30] 
     ;  V07 loc1         [V07,T08] (  3,  3   )   ubyte  ->  r12        
     ;  V08 loc2         [V08    ] (  3,  1.50)    long  ->  [rbp-0x38]  do-not-enreg[X] addr-exposed ld-addr-op
     ;# V09 OutArgs      [V09    ] (  1,  1   )  struct ( 0) [rsp+0x00]  do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
     ;* V10 tmp1         [V10    ] (  0,  0   )     ref  ->  zero-ref    class-hnd exact "Single-def Box Helper" <System.Runtime.InteropServices.CreateObjectFlags>
     ;* V11 tmp2         [V11    ] (  0,  0   )     ref  ->  zero-ref    class-hnd exact "Single-def Box Helper" <System.Runtime.InteropServices.CreateObjectFlags>
     ;* V12 tmp3         [V12    ] (  0,  0   )     int  ->  zero-ref    "Enum:HasFlag this temp"
     ;  V13 tmp4         [V13,T09] (  3,  2   )     int  ->  r12        
     ;  V14 tmp5         [V14,T10] (  3,  2   )     int  ->  rax        
     ;* V15 tmp6         [V15    ] (  0,  0   )     ref  ->  zero-ref    class-hnd exact "Single-def Box Helper" <System.Runtime.InteropServices.CreateObjectFlags>
     ;* V16 tmp7         [V16    ] (  0,  0   )     ref  ->  zero-ref    class-hnd exact "Single-def Box Helper" <System.Runtime.InteropServices.CreateObjectFlags>
     ;* V17 tmp8         [V17    ] (  0,  0   )     int  ->  zero-ref    "Enum:HasFlag this temp"
     ;  V18 tmp9         [V18,T15] (  2,  1   )     int  ->  rax         "Inline return value spill temp"
    -;  V19 tmp10        [V19    ] (  2,  1   )   byref  ->  [rbp-0x40]  must-init pinned "Inline stloc first use temp"
    +;* V19 tmp10        [V19    ] (  0,  0   )   byref  ->  zero-ref    "Inline stloc first use temp"
     ;* V20 tmp11        [V20    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
     ;* V21 tmp12        [V21    ] (  0,  0   )   byref  ->  zero-ref    single-def "Inline stloc first use temp"
     ;* V22 tmp13        [V22    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
     ;  V23 tmp14        [V23,T16] (  2,  1   )    long  ->   r8         "Inline stloc first use temp"
     ;  V24 tmp15        [V24,T13] (  3,  1   )     int  ->  rax         "Inline return value spill temp"
    -;  V25 tmp16        [V25    ] (  2,  1   )   byref  ->  [rbp-0x48]  must-init pinned "Inline stloc first use temp"
    +;* V25 tmp16        [V25    ] (  0,  0   )   byref  ->  zero-ref    "Inline stloc first use temp"
     ;* V26 tmp17        [V26    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
    -;  V27 tmp18        [V27    ] (  2,  1   )   byref  ->  [rbp-0x50]  must-init pinned "Inline stloc first use temp"
    +;  V27 tmp18        [V27    ] (  2,  1   )   byref  ->  [rbp-0x40]  must-init pinned "Inline stloc first use temp"
     ;* V28 tmp19        [V28    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
     ;  V29 tmp20        [V29,T17] (  2,  1   )    long  ->   r8         "Inline stloc first use temp"
     ;  V30 tmp21        [V30,T14] (  3,  1   )     int  ->  rax         "Inline return value spill temp"
    -;  V31 tmp22        [V31    ] (  2,  1   )   byref  ->  [rbp-0x58]  must-init pinned "Inline stloc first use temp"
    +;* V31 tmp22        [V31    ] (  0,  0   )   byref  ->  zero-ref    "Inline stloc first use temp"
     ;* V32 tmp23        [V32    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
    -;  V33 tmp24        [V33    ] (  2,  1   )   byref  ->  [rbp-0x60]  must-init pinned "Inline stloc first use temp"
    +;  V33 tmp24        [V33    ] (  2,  1   )   byref  ->  [rbp-0x48]  must-init pinned "Inline stloc first use temp"
     ;* V34 tmp25        [V34    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
     ;  V35 tmp26        [V35,T18] (  2,  1   )    long  ->   r8         "Inline stloc first use temp"
    -;  V36 FramesRoot   [V36,T00] ( 14,  8   )    long  ->  [rbp-0x68]  spill-single-def "Pinvoke FrameListRoot"
    -;  V37 PInvokeFrame [V37    ] ( 13,  8.50)  struct (56) [rbp-0xA0]  do-not-enreg[XS] addr-exposed "Pinvoke FrameVar" <UNNAMED>
    +;  V36 FramesRoot   [V36,T00] ( 14,  8   )    long  ->  [rbp-0x50]  spill-single-def "Pinvoke FrameListRoot"
    +;  V37 PInvokeFrame [V37    ] ( 13,  8.50)  struct (56) [rbp-0x88]  do-not-enreg[XS] addr-exposed "Pinvoke FrameVar" <UNNAMED>
     ;* V38 tmp29        [V38    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V39 tmp30        [V39    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;  V40 tmp31        [V40,T11] (  2,  2   )    long  ->  rdx         "Cast away GC"
     ;* V41 tmp32        [V41    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;  V42 tmp33        [V42,T12] (  2,  2   )    long  ->  rdx         "Cast away GC"
     ;
    -; Lcl frame size = 152
    +; Lcl frame size = 120
     
     G_M12505_IG01:
            push     rbp
            push     r15
            push     r14
            push     r13
            push     r12
            push     rbx
    -       sub      rsp, 152
    -       lea      rbp, [rsp+0xC0]
    -       vxorps   xmm8, xmm8, xmm8
    -       vmovdqu  ymmword ptr [rbp-0x60], ymm8
    +       sub      rsp, 120
    +       lea      rbp, [rsp+0xA0]
            xor      eax, eax
            mov      qword ptr [rbp-0x40], rax
    -       mov      bword ptr [rbp-0xA8], rcx
    -       mov      bword ptr [rbp-0xB8], r9
    +       mov      qword ptr [rbp-0x48], rax
    +       mov      bword ptr [rbp-0x90], rcx
    +       mov      bword ptr [rbp-0xA0], r9
            mov      r15, rdi
            mov      r14, rsi
            mov      r12d, edx
            mov      r13, r8
    -						;; size=67 bbWeight=1 PerfScore 13.33
    +						;; size=58 bbWeight=1 PerfScore 12.00
     G_M12505_IG02:
    -       lea      rdi, [rbp-0xA0]
    +       lea      rdi, [rbp-0x88]
            call     CORINFO_HELP_INIT_PINVOKE_FRAME
    -       mov      qword ptr [rbp-0x68], rax
    +       mov      qword ptr [rbp-0x50], rax
            mov      rdx, rsp
    -       mov      qword ptr [rbp-0x88], rdx
    +       mov      qword ptr [rbp-0x70], rdx
            mov      rdx, rbp
    -       mov      qword ptr [rbp-0x78], rdx
    -       mov      bword ptr [rbp-0xB0], r13
    +       mov      qword ptr [rbp-0x60], rdx
    +       mov      bword ptr [rbp-0x98], r13
            mov      qword ptr [r13], r14
            mov      rcx, r15
            test     r12b, 1
            jne      SHORT G_M12505_IG04
    -						;; size=53 bbWeight=1 PerfScore 8.50
    +						;; size=50 bbWeight=1 PerfScore 8.50
     G_M12505_IG03:
            xor      r12d, r12d
            jmp      SHORT G_M12505_IG05
     						;; size=5 bbWeight=0.50 PerfScore 1.12
     G_M12505_IG04:
            test     r12b, 4
            setne    r12b
            movzx    r12, r12b
     						;; size=12 bbWeight=0.50 PerfScore 0.75
     G_M12505_IG05:
            test     r12d, r12d
    -       je       G_M12505_IG10
    -						;; size=9 bbWeight=1 PerfScore 1.25
    +       je       SHORT G_M12505_IG10
    +						;; size=5 bbWeight=1 PerfScore 1.25
     G_M12505_IG06:
            test     rcx, rcx
    -       je       G_M12505_IG28
    -       mov      rdx, 0xD1FFAB1E      ; static handle
    -       mov      bword ptr [rbp-0x40], rdx
    +       je       G_M12505_IG26
            mov      rdx, qword ptr [rcx]
            mov      r8, qword ptr [rdx]
            lea      rdx, [rbp-0x38]
            mov      qword ptr [rbp-0x30], rcx
            mov      rdi, rcx
            mov      rsi, 0xD1FFAB1E
            lea      r9, G_M12505_IG08
    -       mov      qword ptr [rbp-0x80], r9
    -       lea      r9, [rbp-0xA0]
    +       mov      qword ptr [rbp-0x68], r9
    +       lea      r9, [rbp-0x88]
            mov      qword ptr [rax+0x08], r9
            mov      byte  ptr [rax+0x04], 0
    -						;; size=76 bbWeight=0.50 PerfScore 6.50
    +						;; size=62 bbWeight=0.50 PerfScore 5.88
     G_M12505_IG07:
            call     r8
     						;; size=3 bbWeight=0.50 PerfScore 1.50
     G_M12505_IG08:
    -       mov      rbx, qword ptr [rbp-0x68]
    +       mov      rbx, qword ptr [rbp-0x50]
            mov      byte  ptr [rbx+0x04], 1
            mov      rcx, 0xD1FFAB1E      ; function address
            cmp      dword ptr [rcx], 0
            je       SHORT G_M12505_IG09
            mov      rdi, 0xD1FFAB1E
            call     [rdi]CORINFO_HELP_STOP_FOR_GC
     						;; size=35 bbWeight=0.50 PerfScore 4.75
     G_M12505_IG09:
    -       mov      rdi, qword ptr [rbp-0x98]
    +       mov      rdi, qword ptr [rbp-0x80]
            mov      qword ptr [rbx+0x08], rdi
    -       xor      rdi, rdi
    -       mov      bword ptr [rbp-0x40], rdi
            test     eax, eax
            mov      rax, rbx
            mov      rcx, qword ptr [rbp-0x30]
    -       je       G_M12505_IG15
    -						;; size=32 bbWeight=0.50 PerfScore 2.88
    +       je       G_M12505_IG14
    +						;; size=23 bbWeight=0.50 PerfScore 2.25
     G_M12505_IG10:
            xor      edi, edi
    -       mov      r8, bword ptr [rbp-0xB8]
    +       mov      r8, bword ptr [rbp-0xA0]
            mov      qword ptr [r8], rdi
            test     rcx, rcx
    -       je       G_M12505_IG28
    -       mov      rdi, 0xD1FFAB1E      ; static handle
    -       mov      bword ptr [rbp-0x58], rdi
    -       mov      rbx, bword ptr [rbp-0xA8]
    -       mov      bword ptr [rbp-0x60], rbx
    -       mov      bword ptr [rbp-0xA8], rbx
    +       je       G_M12505_IG26
    +       mov      rbx, bword ptr [rbp-0x90]
    +       mov      bword ptr [rbp-0x48], rbx
    +       mov      bword ptr [rbp-0x90], rbx
            mov      rdx, rbx
            mov      rdi, qword ptr [rcx]
            mov      r8, qword ptr [rdi]
            mov      qword ptr [rbp-0x30], rcx
            mov      rdi, rcx
            mov      rsi, 0xD1FFAB1E
            lea      r9, G_M12505_IG12
    -       mov      qword ptr [rbp-0x80], r9
    -       lea      r9, [rbp-0xA0]
    +       mov      qword ptr [rbp-0x68], r9
    +       lea      r9, [rbp-0x88]
            mov      qword ptr [rax+0x08], r9
            mov      byte  ptr [rax+0x04], 0
    -						;; size=105 bbWeight=0.50 PerfScore 9.00
    +						;; size=91 bbWeight=0.50 PerfScore 8.38
     G_M12505_IG11:
            call     r8
     						;; size=3 bbWeight=0.50 PerfScore 1.50
     G_M12505_IG12:
    -       mov      rbx, qword ptr [rbp-0x68]
    +       mov      rbx, qword ptr [rbp-0x50]
            mov      byte  ptr [rbx+0x04], 1
            mov      rcx, 0xD1FFAB1E      ; function address
            cmp      dword ptr [rcx], 0
            je       SHORT G_M12505_IG13
            mov      rdi, 0xD1FFAB1E
            call     [rdi]CORINFO_HELP_STOP_FOR_GC
     						;; size=35 bbWeight=0.50 PerfScore 4.75
     G_M12505_IG13:
    -       mov      rdi, qword ptr [rbp-0x98]
    +       mov      rdi, qword ptr [rbp-0x80]
            mov      qword ptr [rbx+0x08], rdi
            xor      rdi, rdi
    -       mov      bword ptr [rbp-0x58], rdi
    -						;; size=17 bbWeight=0.50 PerfScore 1.62
    -G_M12505_IG14:
    -       mov      bword ptr [rbp-0x60], rdi
    +       mov      bword ptr [rbp-0x48], rdi
            test     eax, eax
    -       jge      G_M12505_IG20
    -       jmp      G_M12505_IG29
    -						;; size=17 bbWeight=0.50 PerfScore 2.12
    -G_M12505_IG15:
    +       jge      G_M12505_IG18
    +       jmp      G_M12505_IG27
    +						;; size=27 bbWeight=0.50 PerfScore 3.25
    +G_M12505_IG14:
            mov      rcx, qword ptr [rbp-0x38]
            mov      rdi, qword ptr [rbp-0x38]
    -       mov      rdx, bword ptr [rbp-0xB8]
    +       mov      rdx, bword ptr [rbp-0xA0]
            mov      qword ptr [rdx], rdi
            test     rcx, rcx
    -       je       G_M12505_IG28
    -       mov      rdi, 0xD1FFAB1E      ; static handle
    -       mov      bword ptr [rbp-0x48], rdi
    -       mov      rbx, bword ptr [rbp-0xA8]
    -       mov      bword ptr [rbp-0x50], rbx
    -       mov      bword ptr [rbp-0xA8], rbx
    +       je       G_M12505_IG26
    +       mov      rbx, bword ptr [rbp-0x90]
    +       mov      bword ptr [rbp-0x40], rbx
    +       mov      bword ptr [rbp-0x90], rbx
            mov      rdx, rbx
            mov      rdi, qword ptr [rcx]
            mov      r8, qword ptr [rdi]
            mov      qword ptr [rbp-0x30], rcx
            mov      rdi, rcx
            mov      rsi, 0xD1FFAB1E
    -       lea      r9, G_M12505_IG17
    -       mov      qword ptr [rbp-0x80], r9
    -       lea      r9, [rbp-0xA0]
    +       lea      r9, G_M12505_IG16
    +       mov      qword ptr [rbp-0x68], r9
    +       lea      r9, [rbp-0x88]
            mov      qword ptr [rax+0x08], r9
            mov      byte  ptr [rax+0x04], 0
    -						;; size=111 bbWeight=0.50 PerfScore 9.88
    -G_M12505_IG16:
    +						;; size=97 bbWeight=0.50 PerfScore 9.25
    +G_M12505_IG15:
            call     r8
     						;; size=3 bbWeight=0.50 PerfScore 1.50
    -G_M12505_IG17:
    -       mov      rbx, qword ptr [rbp-0x68]
    +G_M12505_IG16:
    +       mov      rbx, qword ptr [rbp-0x50]
            mov      byte  ptr [rbx+0x04], 1
            mov      rcx, 0xD1FFAB1E      ; function address
            cmp      dword ptr [rcx], 0
    -       je       SHORT G_M12505_IG18
    +       je       SHORT G_M12505_IG17
            mov      rdi, 0xD1FFAB1E
            call     [rdi]CORINFO_HELP_STOP_FOR_GC
     						;; size=35 bbWeight=0.50 PerfScore 4.75
    -G_M12505_IG18:
    -       mov      rdi, qword ptr [rbp-0x98]
    +G_M12505_IG17:
    +       mov      rdi, qword ptr [rbp-0x80]
            mov      qword ptr [rbx+0x08], rdi
            xor      rdi, rdi
    -       mov      bword ptr [rbp-0x48], rdi
    -						;; size=17 bbWeight=0.50 PerfScore 1.62
    -G_M12505_IG19:
    -       mov      bword ptr [rbp-0x50], rdi
    +       mov      bword ptr [rbp-0x40], rdi
            test     eax, eax
    -       jl       SHORT G_M12505_IG27
    -						;; size=8 bbWeight=0.50 PerfScore 1.12
    -G_M12505_IG20:
    +       jl       SHORT G_M12505_IG25
    +						;; size=18 bbWeight=0.50 PerfScore 2.25
    +G_M12505_IG18:
            test     r14, r14
    -       jne      SHORT G_M12505_IG22
    +       jne      SHORT G_M12505_IG20
     						;; size=5 bbWeight=1 PerfScore 1.25
    -G_M12505_IG21:
    +G_M12505_IG19:
            cmp      qword ptr [rbp-0x30], r15
    -       jne      SHORT G_M12505_IG23
    +       jne      SHORT G_M12505_IG21
     						;; size=6 bbWeight=0.50 PerfScore 1.50
    -G_M12505_IG22:
    +G_M12505_IG20:
            xor      eax, eax
    -       jmp      SHORT G_M12505_IG24
    +       jmp      SHORT G_M12505_IG22
     						;; size=4 bbWeight=0.50 PerfScore 1.12
    -G_M12505_IG23:
    -       mov      rbx, bword ptr [rbp-0xA8]
    +G_M12505_IG21:
    +       mov      rbx, bword ptr [rbp-0x90]
            cmp      r15, qword ptr [rbx]
            setne    al
            movzx    rax, al
     						;; size=16 bbWeight=0.50 PerfScore 2.62
    -G_M12505_IG24:
    +G_M12505_IG22:
            test     eax, r12d
    -       je       SHORT G_M12505_IG26
    +       je       SHORT G_M12505_IG24
     						;; size=5 bbWeight=1 PerfScore 1.25
    -G_M12505_IG25:
    -       mov      r13, bword ptr [rbp-0xB0]
    +G_M12505_IG23:
    +       mov      r13, bword ptr [rbp-0x98]
            mov      qword ptr [r13], r15
     						;; size=11 bbWeight=0.50 PerfScore 1.00
    -G_M12505_IG26:
    -       add      rsp, 152
    +G_M12505_IG24:
    +       add      rsp, 120
            pop      rbx
            pop      r12
            pop      r13
            pop      r14
            pop      r15
            pop      rbp
            ret      
    -						;; size=18 bbWeight=1 PerfScore 4.25
    -G_M12505_IG27:
    +						;; size=15 bbWeight=1 PerfScore 4.25
    +G_M12505_IG25:
            mov      edi, eax
            mov      rax, 0xD1FFAB1E      ; code for System.Runtime.InteropServices.Marshal:GetExceptionForHR(int):System.Exception
            call     [rax]System.Runtime.InteropServices.Marshal:GetExceptionForHR(int):System.Exception
            mov      rdi, rax
            call     CORINFO_HELP_THROW
            int3     
     						;; size=23 bbWeight=0 PerfScore 0.00
    -G_M12505_IG28:
    +G_M12505_IG26:
            mov      edi, 0x19D8D
            mov      rsi, 0xD1FFAB1E
            mov      rax, 0xD1FFAB1E      ; code for CORINFO_HELP_STRCNS
            call     [rax]CORINFO_HELP_STRCNS
            mov      rdi, rax
            mov      rax, 0xD1FFAB1E      ; code for System.ArgumentNullException:Throw(System.String)
            call     [rax]System.ArgumentNullException:Throw(System.String)
            int3     
     						;; size=43 bbWeight=0 PerfScore 0.00
    -G_M12505_IG29:
    +G_M12505_IG27:
            mov      edi, eax
            mov      rax, 0xD1FFAB1E      ; code for System.Runtime.InteropServices.Marshal:GetExceptionForHR(int):System.Exception
            call     [rax]System.Runtime.InteropServices.Marshal:GetExceptionForHR(int):System.Exception
            mov      rdi, rax
            call     CORINFO_HELP_THROW
            int3     
     						;; size=23 bbWeight=0 PerfScore 0.00
     
    -; Total bytes of code 797, prolog size 41, PerfScore 91.46, instruction count 184, allocated bytes for code 797 (MethodHash=c175cf26) for method System.Runtime.InteropServices.ComWrappers:DetermineIdentityAndInner(nint,nint,int,byref,byref,byref) (FullOpts)
    +; Total bytes of code 713, prolog size 32, PerfScore 86.62, instruction count 173, allocated bytes for code 713 (MethodHash=c175cf26) for method System.Runtime.InteropServices.ComWrappers:DetermineIdentityAndInner(nint,nint,int,byref,byref,byref) (FullOpts)
     ; ============================================================
    -66 (-47.48 % of base) - System.Net.Sockets.UnixDomainSocketEndPoint:.cctor()
     ; Assembly listing for method System.Net.Sockets.UnixDomainSocketEndPoint:.cctor() (FullOpts)
     ; Emitting BLENDED_CODE for generic X64 + VEX + EVEX on Unix
     ; FullOpts code
     ; optimized code
     ; rbp based frame
     ; partially interruptible
     ; No PGO data
     ; Final local variable assignments
     ;
    -;  V00 loc0         [V00    ] (  2,  2   )   byref  ->  [rbp-0x08]  pinned
    +;* V00 loc0         [V00    ] (  0,  0   )   byref  ->  zero-ref   
     ;* V01 loc1         [V01    ] (  0,  0   )    long  ->  zero-ref   
    -;  V02 loc2         [V02    ] (  2,  2   )   byref  ->  [rbp-0x10]  pinned
    +;* V02 loc2         [V02    ] (  0,  0   )   byref  ->  zero-ref   
     ;* V03 loc3         [V03    ] (  0,  0   )    long  ->  zero-ref   
    -;  V04 loc4         [V04    ] (  2,  2   )   byref  ->  [rbp-0x18]  pinned
    +;* V04 loc4         [V04    ] (  0,  0   )   byref  ->  zero-ref   
     ;# V05 OutArgs      [V05    ] (  1,  1   )  struct ( 0) [rsp+0x00]  do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
     ;* V06 tmp1         [V06    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V07 tmp2         [V07    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V08 tmp3         [V08    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V09 tmp4         [V09,T00] (  0,  0   )    long  ->  zero-ref    "argument with side effect"
     ;* V10 tmp5         [V10,T01] (  0,  0   )    long  ->  zero-ref    "argument with side effect"
     ;
    -; Lcl frame size = 32
    +; Lcl frame size = 0
     
     G_M57672_IG01:
            push     rbp
    -       sub      rsp, 32
            vzeroupper 
    -       lea      rbp, [rsp+0x20]
    -						;; size=13 bbWeight=1 PerfScore 2.75
    +       mov      rbp, rsp
    +						;; size=7 bbWeight=1 PerfScore 2.25
     G_M57672_IG02:
    -       mov      rdi, 0xD1FFAB1E      ; data for System.Net.Sockets.UnixDomainSocketEndPoint:s_nativePathOffset
    -       mov      bword ptr [rbp-0x08], rdi
    -       mov      rdi, 0xD1FFAB1E      ; data for System.Net.Sockets.UnixDomainSocketEndPoint:s_nativePathLength
    -       mov      bword ptr [rbp-0x10], rdi
    -       mov      rdi, 0xD1FFAB1E      ; data for System.Net.Sockets.UnixDomainSocketEndPoint:s_nativeAddressSize
    -       mov      bword ptr [rbp-0x18], rdi
            mov      rdi, 0xD1FFAB1E
            mov      rdx, 0xD1FFAB1E
            mov      rsi, 0xD1FFAB1E
            mov      rax, 0xD1FFAB1E      ; function address
    -						;; size=82 bbWeight=1 PerfScore 4.75
    +						;; size=40 bbWeight=1 PerfScore 1.00
     G_M57672_IG03:
            call     rax ; Interop+Sys:GetDomainSocketSizes(ptr,ptr,ptr)
    -       xor      eax, eax
    -       mov      bword ptr [rbp-0x18], rax
    -						;; size=8 bbWeight=1 PerfScore 4.25
    -G_M57672_IG04:
    -       mov      bword ptr [rbp-0x10], rax
    -						;; size=4 bbWeight=1 PerfScore 1.00
    -G_M57672_IG05:
    -       mov      bword ptr [rbp-0x08], rax
            mov      rax, 0xD1FFAB1E      ; global ptr
            cmp      dword ptr [rax], 0
    -       jne      SHORT G_M57672_IG07
    -						;; size=19 bbWeight=1 PerfScore 5.25
    -G_M57672_IG06:
    -       add      rsp, 32
    +       jne      SHORT G_M57672_IG05
    +						;; size=17 bbWeight=1 PerfScore 7.25
    +G_M57672_IG04:
            pop      rbp
            ret      
    -						;; size=6 bbWeight=1 PerfScore 1.75
    -G_M57672_IG07:
    +						;; size=2 bbWeight=1 PerfScore 1.50
    +G_M57672_IG05:
            call     CORINFO_HELP_POLL_GC
    -       jmp      SHORT G_M57672_IG06
    +       jmp      SHORT G_M57672_IG04
     						;; size=7 bbWeight=0 PerfScore 0.00
     
    -; Total bytes of code 139, prolog size 13, PerfScore 19.75, instruction count 27, allocated bytes for code 139 (MethodHash=76e61eb7) for method System.Net.Sockets.UnixDomainSocketEndPoint:.cctor() (FullOpts)
    +; Total bytes of code 73, prolog size 7, PerfScore 12.00, instruction count 15, allocated bytes for code 73 (MethodHash=76e61eb7) for method System.Net.Sockets.UnixDomainSocketEndPoint:.cctor() (FullOpts)
     ; ============================================================
    -54 (-7.54 % of base) - System.Runtime.InteropServices.ReferenceTrackerHost:IReferenceTrackerHost_GetTrackerTarget(nint,nint,ptr):int
     ; Assembly listing for method System.Runtime.InteropServices.ReferenceTrackerHost:IReferenceTrackerHost_GetTrackerTarget(nint,nint,ptr):int (FullOpts)
     ; Emitting BLENDED_CODE for generic X64 + VEX + EVEX on Unix
     ; FullOpts code
     ; optimized code
     ; rbp based frame
     ; fully interruptible
     ; No PGO data
     ; 0 inlinees with PGO data; 10 single block inlinees; 4 inlinees without PGO data
     ; Final local variable assignments
     ;
     ;* V00 arg0         [V00    ] (  0,  0   )    long  ->  zero-ref    single-def
     ;  V01 arg1         [V01,T03] (  5,  5   )    long  ->  rbx         single-def
     ;  V02 arg2         [V02,T04] (  3,  3   )    long  ->  r15         single-def
     ;  V03 loc0         [V03    ] (  2,  2   )    long  ->  [rbp-0x30]  do-not-enreg[X] addr-exposed ld-addr-op
     ;* V04 loc1         [V04    ] (  0,  0   )  struct ( 8) zero-ref    ld-addr-op <System.Runtime.InteropServices.ComHolder>
     ;* V05 loc2         [V05    ] (  0,  0   )  struct ( 8) zero-ref    ld-addr-op <System.Runtime.InteropServices.ComHolder>
     ;  V06 loc3         [V06,T08] (  3,  2   )     int  ->  [rbp-0x34]  do-not-enreg[Z] EH-live
     ;# V07 OutArgs      [V07    ] (  1,  1   )  struct ( 0) [rsp+0x00]  do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
     ;* V08 tmp1         [V08    ] (  0,  0   )  struct ( 8) zero-ref    ld-addr-op "NewObj constructor temp" <System.Runtime.InteropServices.ComHolder>
     ;  V09 tmp2         [V09,T15] (  2,  0   )     ref  ->  rdi         class-hnd single-def "impSpillSpecialSideEff" <System.Exception>
     ;  V10 tmp3         [V10,T09] (  2,  2   )     int  ->  rbx         "Inline return value spill temp"
    -;  V11 tmp4         [V11    ] (  2,  2   )   byref  ->  [rbp-0x40]  must-init pinned "Inline stloc first use temp"
    +;* V11 tmp4         [V11    ] (  0,  0   )   byref  ->  zero-ref    "Inline stloc first use temp"
     ;* V12 tmp5         [V12    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
     ;* V13 tmp6         [V13    ] (  0,  0   )   byref  ->  zero-ref    single-def "Inline stloc first use temp"
     ;* V14 tmp7         [V14    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
     ;  V15 tmp8         [V15,T10] (  2,  2   )    long  ->  r14         "Inline stloc first use temp"
     ;  V16 tmp9         [V16,T00] (  6, 12   )    long  ->  rbx         "Inlining Arg"
     ;* V17 tmp10        [V17    ] (  0,  0   )    long  ->  zero-ref    "Inlining Arg"
     ;  V18 tmp11        [V18,T11] (  2,  2   )     int  ->  rax         "Inline return value spill temp"
     ;* V19 tmp12        [V19    ] (  0,  0   )    long  ->  zero-ref    "Inlining Arg"
    -;  V20 tmp13        [V20    ] (  2,  2   )   byref  ->  [rbp-0x48]  must-init pinned "Inline stloc first use temp"
    +;* V20 tmp13        [V20    ] (  0,  0   )   byref  ->  zero-ref    "Inline stloc first use temp"
     ;* V21 tmp14        [V21    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
    -;  V22 tmp15        [V22    ] (  3,  3   )   byref  ->  [rbp-0x50]  must-init pinned "Inline stloc first use temp"
    +;  V22 tmp15        [V22    ] (  3,  3   )   byref  ->  [rbp-0x40]  must-init pinned "Inline stloc first use temp"
     ;* V23 tmp16        [V23    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
     ;  V24 tmp17        [V24,T12] (  2,  2   )    long  ->  r10         "Inline stloc first use temp"
     ;* V25 tmp18        [V25    ] (  0,  0   )    long  ->  zero-ref    "Inlining Arg"
     ;  V26 tmp19        [V26,T06] (  4,  2   )    long  ->  r10         "Inline stloc first use temp"
     ;* V27 tmp20        [V27    ] (  0,  0   )    long  ->  zero-ref    "Inlining Arg"
     ;  V28 tmp21        [V28,T07] (  4,  2   )    long  ->  r10         "Inline stloc first use temp"
     ;  V29 tmp22        [V29,T01] (  4,  8   )     int  ->  rbx         "Single return block return value"
    -;  V30 PInvokeFrame [V30    ] (  3,  3   )  struct (56) [rbp-0x88]  do-not-enreg[XS] addr-exposed "Pinvoke FrameVar" <UNNAMED>
    -;  V31 tmp24        [V31    ] (  3,  3   )  struct (16) [rbp-0x98]  do-not-enreg[XS] addr-exposed "Reverse Pinvoke FrameVar" <UNNAMED>
    -;  V32 tmp25        [V32,T13] (  4,  1   )    long  ->  [rbp-0xA0]  do-not-enreg[Z] EH-live "field V04._ptr (fldOffset=0x0)" P-INDEP
    -;  V33 tmp26        [V33,T14] (  4,  1   )    long  ->  [rbp-0xA8]  do-not-enreg[Z] EH-live "field V05._ptr (fldOffset=0x0)" P-INDEP
    +;  V30 PInvokeFrame [V30    ] (  3,  3   )  struct (56) [rbp-0x78]  do-not-enreg[XS] addr-exposed "Pinvoke FrameVar" <UNNAMED>
    +;  V31 tmp24        [V31    ] (  3,  3   )  struct (16) [rbp-0x88]  do-not-enreg[XS] addr-exposed "Reverse Pinvoke FrameVar" <UNNAMED>
    +;  V32 tmp25        [V32,T13] (  4,  1   )    long  ->  [rbp-0x90]  do-not-enreg[Z] EH-live "field V04._ptr (fldOffset=0x0)" P-INDEP
    +;  V33 tmp26        [V33,T14] (  4,  1   )    long  ->  [rbp-0x98]  do-not-enreg[Z] EH-live "field V05._ptr (fldOffset=0x0)" P-INDEP
     ;  V34 tmp27        [V34,T02] (  7,  7   )    long  ->  r14         "field V08._ptr (fldOffset=0x0)" P-INDEP
     ;* V35 tmp28        [V35    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V36 tmp29        [V36    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;  V37 tmp30        [V37,T05] (  2,  4   )    long  ->  rdx         "Cast away GC"
    -;  TEMP_03                                    long  ->  [rbp-0xB0]
    -;  TEMP_02                                    long  ->  [rbp-0xB8]
    -;  TEMP_01                                    long  ->  [rbp-0xC0]
    +;  TEMP_03                                    long  ->  [rbp-0xA0]
    +;  TEMP_02                                    long  ->  [rbp-0xA8]
    +;  TEMP_01                                    long  ->  [rbp-0xB0]
     ;
    -; Lcl frame size = 152
    +; Lcl frame size = 136
     
     G_M30005_IG01:
            push     rbp
            push     r15
            push     r14
            push     r13
            push     r12
            push     rbx
    -       sub      rsp, 152
    -       lea      rbp, [rsp+0xC0]
    -       vxorps   xmm8, xmm8, xmm8
    -       vmovdqa  xmmword ptr [rbp-0x50], xmm8
    +       sub      rsp, 136
    +       lea      rbp, [rsp+0xB0]
            xor      eax, eax
            mov      qword ptr [rbp-0x40], rax
            mov      rbx, rsi
            mov      r15, rdx
    -						;; size=47 bbWeight=1 PerfScore 10.83
    +						;; size=37 bbWeight=1 PerfScore 8.50
     G_M30005_IG02:
    -       lea      rdi, [rbp-0x98]
    +       lea      rdi, [rbp-0x88]
            call     CORINFO_HELP_JIT_REVERSE_PINVOKE_ENTER
            test     rbx, rbx
    -       je       G_M30005_IG15
    -       mov      rdx, 0xD1FFAB1E      ; static handle
    -       mov      bword ptr [rbp-0x40], rdx
    +       je       G_M30005_IG14
            mov      rdx, qword ptr [rbx]
            mov      r14, qword ptr [rdx]
            lea      rdx, [rbp-0x30]
    -       mov      qword ptr [rbp-0xB0], rdx
    +       mov      qword ptr [rbp-0xA0], rdx
            mov      rdi, rbx
    -       mov      qword ptr [rbp-0xB8], rdi
    +       mov      qword ptr [rbp-0xA8], rdi
            mov      rsi, 0xD1FFAB1E
    -       mov      qword ptr [rbp-0xC0], rsi
    -       lea      rdi, [rbp-0x88]
    -						;; size=86 bbWeight=1 PerfScore 12.50
    +       mov      qword ptr [rbp-0xB0], rsi
    +       lea      rdi, [rbp-0x78]
    +						;; size=69 bbWeight=1 PerfScore 11.25
     G_M30005_IG03:
            call     CORINFO_HELP_JIT_PINVOKE_BEGIN
    -       mov      rdx, qword ptr [rbp-0xB0]
    -       mov      rdi, qword ptr [rbp-0xB8]
    -       mov      rsi, qword ptr [rbp-0xC0]
    +       mov      rdx, qword ptr [rbp-0xA0]
    +       mov      rdi, qword ptr [rbp-0xA8]
    +       mov      rsi, qword ptr [rbp-0xB0]
     						;; size=26 bbWeight=1 PerfScore 4.00
     G_M30005_IG04:
            call     r14
            mov      ebx, eax
    -       lea      rdi, [rbp-0x88]
    +       lea      rdi, [rbp-0x78]
            call     CORINFO_HELP_JIT_PINVOKE_END
    -       xor      rdi, rdi
    -       mov      bword ptr [rbp-0x40], rdi
            test     ebx, ebx
    -       jne      G_M30005_IG14
    -						;; size=31 bbWeight=1 PerfScore 7.25
    +       jne      G_M30005_IG13
    +						;; size=22 bbWeight=1 PerfScore 6.00
     G_M30005_IG05:
            mov      rbx, qword ptr [rbp-0x30]
    -       mov      qword ptr [rbp-0xA0], rbx
    +       mov      qword ptr [rbp-0x90], rbx
     						;; size=11 bbWeight=1 PerfScore 2.00
     G_M30005_IG06:
            mov      rdi, rbx
            mov      rax, 0xD1FFAB1E      ; code for System.Runtime.InteropServices.ComWrappers:GetOrCreateTrackerTarget(nint):nint
            call     [rax]System.Runtime.InteropServices.ComWrappers:GetOrCreateTrackerTarget(nint):nint
            mov      r14, rax
    -       mov      qword ptr [rbp-0xA8], r14
    +       mov      qword ptr [rbp-0x98], r14
     						;; size=25 bbWeight=1 PerfScore 4.75
     G_M30005_IG07:
            test     r14, r14
    -       je       SHORT G_M30005_IG09
    -       mov      r10, 0xD1FFAB1E      ; static handle
    -       mov      bword ptr [rbp-0x48], r10
    -       mov      bword ptr [rbp-0x50], r15
    -       mov      rdx, bword ptr [rbp-0x50]
    +       je       SHORT G_M30005_IG08
    +       mov      bword ptr [rbp-0x40], r15
    +       mov      rdx, bword ptr [rbp-0x40]
            mov      r10, qword ptr [r14]
            mov      r10, qword ptr [r10]
            mov      rdi, r14
            mov      r11, 0xD1FFAB1E
            mov      rsi, 0xD1FFAB1E
            call     CORINFO_HELP_PINVOKE_CALLI
            xor      r10, r10
    -       mov      bword ptr [rbp-0x48], r10
    -						;; size=68 bbWeight=1 PerfScore 11.50
    -G_M30005_IG08:
    -       mov      bword ptr [rbp-0x50], r10
    +       mov      bword ptr [rbp-0x40], r10
            mov      dword ptr [rbp-0x34], eax
    -       jmp      SHORT G_M30005_IG10
    -						;; size=9 bbWeight=1 PerfScore 4.00
    -G_M30005_IG09:
    +       jmp      SHORT G_M30005_IG09
    +						;; size=59 bbWeight=1 PerfScore 13.25
    +G_M30005_IG08:
            mov      edi, 0x19D8D
            mov      rsi, 0xD1FFAB1E
            mov      rax, 0xD1FFAB1E      ; code for CORINFO_HELP_STRCNS
            call     [rax]CORINFO_HELP_STRCNS
            mov      rdi, rax
            mov      rax, 0xD1FFAB1E      ; code for System.ArgumentNullException:Throw(System.String)
            call     [rax]System.ArgumentNullException:Throw(System.String)
            int3     
     						;; size=43 bbWeight=0 PerfScore 0.00
    -G_M30005_IG10:
    +G_M30005_IG09:
            mov      r10, qword ptr [r14]
            mov      r10, qword ptr [r10+0x10]
            mov      rdi, r14
            mov      r11, 0xD1FFAB1E
            call     CORINFO_HELP_PINVOKE_CALLI
            nop      
     						;; size=26 bbWeight=1 PerfScore 5.75
    -G_M30005_IG11:
    +G_M30005_IG10:
            test     rbx, rbx
    -       je       SHORT G_M30005_IG12
    +       je       SHORT G_M30005_IG11
            mov      r10, qword ptr [rbx]
            mov      r10, qword ptr [r10+0x10]
            mov      rdi, rbx
            mov      r11, 0xD1FFAB1E
            call     CORINFO_HELP_PINVOKE_CALLI
    -       jmp      SHORT G_M30005_IG13
    +       jmp      SHORT G_M30005_IG12
     						;; size=32 bbWeight=1 PerfScore 8.75
    -G_M30005_IG12:
    +G_M30005_IG11:
            mov      edi, 0x19D8D
            mov      rsi, 0xD1FFAB1E
            mov      rax, 0xD1FFAB1E      ; code for CORINFO_HELP_STRCNS
            call     [rax]CORINFO_HELP_STRCNS
            mov      rdi, rax
            mov      rax, 0xD1FFAB1E      ; code for System.ArgumentNullException:Throw(System.String)
            call     [rax]System.ArgumentNullException:Throw(System.String)
            int3     
     						;; size=43 bbWeight=0 PerfScore 0.00
    -G_M30005_IG13:
    +G_M30005_IG12:
            mov      ebx, dword ptr [rbp-0x34]
    -       jmp      SHORT G_M30005_IG16
    +       jmp      SHORT G_M30005_IG15
     						;; size=5 bbWeight=1 PerfScore 3.00
    +G_M30005_IG13:
    +       mov      ebx, 0xD1FFAB1E
    +       jmp      SHORT G_M30005_IG15
    +						;; size=7 bbWeight=1 PerfScore 2.25
     G_M30005_IG14:
    -       mov      ebx, 0xD1FFAB1E
    -       jmp      SHORT G_M30005_IG16
    -						;; size=7 bbWeight=1 PerfScore 2.25
    -G_M30005_IG15:
            mov      ebx, 0xD1FFAB1E
     						;; size=5 bbWeight=1 PerfScore 0.25
    -G_M30005_IG16:
    -       lea      rdi, [rbp-0x98]
    +G_M30005_IG15:
    +       lea      rdi, [rbp-0x88]
            call     CORINFO_HELP_JIT_REVERSE_PINVOKE_EXIT
            mov      eax, ebx
     						;; size=14 bbWeight=1 PerfScore 1.75
    -G_M30005_IG17:
    -       add      rsp, 152
    +G_M30005_IG16:
    +       add      rsp, 136
            pop      rbx
            pop      r12
            pop      r13
            pop      r14
            pop      r15
            pop      rbp
            ret      
     						;; size=18 bbWeight=1 PerfScore 4.25
    +G_M30005_IG17:
    +       push     rax
    +						;; size=1 bbWeight=0 PerfScore 0.00
     G_M30005_IG18:
    -       push     rax
    -						;; size=1 bbWeight=0 PerfScore 0.00
    +       cmp      qword ptr [rbp-0x98], 0
    +       jne      SHORT G_M30005_IG19
    +       mov      edi, 0x19D8D
    +       mov      rsi, 0xD1FFAB1E
    +       mov      rax, 0xD1FFAB1E      ; code for CORINFO_HELP_STRCNS
    +       call     [rax]CORINFO_HELP_STRCNS
    +       mov      rdi, rax
    +       mov      rax, 0xD1FFAB1E      ; code for System.ArgumentNullException:Throw(System.String)
    +       call     [rax]System.ArgumentNullException:Throw(System.String)
    +       int3     
    +						;; size=53 bbWeight=0 PerfScore 0.00
     G_M30005_IG19:
    -       cmp      qword ptr [rbp-0xA8], 0
    -       jne      SHORT G_M30005_IG20
    -       mov      edi, 0x19D8D
    -       mov      rsi, 0xD1FFAB1E
    -       mov      rax, 0xD1FFAB1E      ; code for CORINFO_HELP_STRCNS
    -       call     [rax]CORINFO_HELP_STRCNS
    -       mov      rdi, rax
    -       mov      rax, 0xD1FFAB1E      ; code for System.ArgumentNullException:Throw(System.String)
    -       call     [rax]System.ArgumentNullException:Throw(System.String)
    -       int3     
    -						;; size=53 bbWeight=0 PerfScore 0.00
    +       mov      r10, qword ptr [rbp-0x98]
    +       mov      r10, qword ptr [r10]
    +       mov      r10, qword ptr [r10+0x10]
    +       mov      rdi, qword ptr [rbp-0x98]
    +       mov      r11, 0xD1FFAB1E
    +       call     CORINFO_HELP_PINVOKE_CALLI
    +       nop      
    +						;; size=37 bbWeight=0 PerfScore 0.00
     G_M30005_IG20:
    -       mov      r10, qword ptr [rbp-0xA8]
    -       mov      r10, qword ptr [r10]
    -       mov      r10, qword ptr [r10+0x10]
    -       mov      rdi, qword ptr [rbp-0xA8]
    -       mov      r11, 0xD1FFAB1E
    -       call     CORINFO_HELP_PINVOKE_CALLI
    -       nop      
    -						;; size=37 bbWeight=0 PerfScore 0.00
    -G_M30005_IG21:
            add      rsp, 8
            ret      
     						;; size=5 bbWeight=0 PerfScore 0.00
    -G_M30005_IG22:
    +G_M30005_IG21:
            push     rax
     						;; size=1 bbWeight=0 PerfScore 0.00
    -G_M30005_IG23:
    -       cmp      qword ptr [rbp-0xA0], 0
    -       jne      SHORT G_M30005_IG24
    +G_M30005_IG22:
    +       cmp      qword ptr [rbp-0x90], 0
    +       jne      SHORT G_M30005_IG23
            mov      edi, 0x19D8D
            mov      rsi, 0xD1FFAB1E
            mov      rax, 0xD1FFAB1E      ; code for CORINFO_HELP_STRCNS
            call     [rax]CORINFO_HELP_STRCNS
            mov      rdi, rax
            mov      rax, 0xD1FFAB1E      ; code for System.ArgumentNullException:Throw(System.String)
            call     [rax]System.ArgumentNullException:Throw(System.String)
            int3     
     						;; size=53 bbWeight=0 PerfScore 0.00
    -G_M30005_IG24:
    -       mov      r10, qword ptr [rbp-0xA0]
    +G_M30005_IG23:
    +       mov      r10, qword ptr [rbp-0x90]
            mov      r10, qword ptr [r10]
            mov      r10, qword ptr [r10+0x10]
    -       mov      rdi, qword ptr [rbp-0xA0]
    +       mov      rdi, qword ptr [rbp-0x90]
            mov      r11, 0xD1FFAB1E
            call     CORINFO_HELP_PINVOKE_CALLI
            nop      
     						;; size=37 bbWeight=0 PerfScore 0.00
    -G_M30005_IG25:
    +G_M30005_IG24:
            add      rsp, 8
            ret      
     						;; size=5 bbWeight=0 PerfScore 0.00
    -G_M30005_IG26:
    +G_M30005_IG25:
            push     rax
     						;; size=1 bbWeight=0 PerfScore 0.00
    -G_M30005_IG27:
    +G_M30005_IG26:
            mov      rax, 0xD1FFAB1E      ; code for System.Runtime.InteropServices.Marshal:GetHRForException(System.Exception):int
            call     [rax]System.Runtime.InteropServices.Marshal:GetHRForException(System.Exception):int
            mov      dword ptr [rbp-0x34], eax
    -       lea      rax, G_M30005_IG13
    +       lea      rax, G_M30005_IG12
     						;; size=22 bbWeight=0 PerfScore 0.00
    -G_M30005_IG28:
    +G_M30005_IG27:
            add      rsp, 8
            ret      
     						;; size=5 bbWeight=0 PerfScore 0.00
     
    -; Total bytes of code 716, prolog size 47, PerfScore 82.83, instruction count 158, allocated bytes for code 716 (MethodHash=0a468aca) for method System.Runtime.InteropServices.ReferenceTrackerHost:IReferenceTrackerHost_GetTrackerTarget(nint,nint,ptr):int (FullOpts)
    +; Total bytes of code 662, prolog size 37, PerfScore 75.75, instruction count 149, allocated bytes for code 662 (MethodHash=0a468aca) for method System.Runtime.InteropServices.ReferenceTrackerHost:IReferenceTrackerHost_GetTrackerTarget(nint,nint,ptr):int (FullOpts)
     ; ============================================================
    -44 (-2.15 % of base) - System.ConsolePal:EnsureInitializedCore()
     ; Assembly listing for method System.ConsolePal:EnsureInitializedCore() (FullOpts)
     ; Emitting BLENDED_CODE for generic X64 + VEX + EVEX on Unix
     ; FullOpts code
     ; optimized code
     ; rbp based frame
     ; fully interruptible
     ; No PGO data
     ; 0 inlinees with PGO data; 3 single block inlinees; 6 inlinees without PGO data
     ; Final local variable assignments
     ;
    -;  V00 loc0         [V00,T02] (  9,  4   )     ref  ->  [rbp-0x98]  class-hnd EH-live spill-single-def ptr <System.IO.TextWriter>
    +;  V00 loc0         [V00,T02] (  9,  4   )     ref  ->  [rbp-0x90]  class-hnd EH-live spill-single-def ptr <System.IO.TextWriter>
     ;  V01 loc1         [V01,T07] (  3,  2   )   ubyte  ->  [rbp-0x4C]  do-not-enreg[Z] ld-addr-op EH-live
     ;  V02 loc2         [V02,T11] (  3,  1.50)     ref  ->  rsi         class-hnd exact single-def <System.String>
     ;* V03 loc3         [V03    ] (  0,  0   )    long  ->  zero-ref    ptr
     ;* V04 loc4         [V04    ] (  0,  0   )    long  ->  zero-ref    ptr
     ;* V05 loc5         [V05    ] (  0,  0   )  struct (16) zero-ref    ld-addr-op <System.ReadOnlySpan`1[int]>
     ;# V06 OutArgs      [V06    ] (  1,  1   )  struct ( 0) [rsp+0x00]  do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
     ;  V07 tmp1         [V07,T08] (  2,  2   )     ref  ->  rdi         class-hnd exact single-def "dup spill" <System.UnhandledExceptionEventHandler>
     ;  V08 tmp2         [V08,T09] (  2,  2   )     ref  ->  r15         class-hnd exact single-def "impSpillLclRefs" <System.AppDomain>
     ;* V09 tmp3         [V09    ] (  0,  0   )     ref  ->  zero-ref    single-def
     ;  V10 tmp4         [V10,T05] (  4,  2   )     ref  ->  rdi        
     ;  V11 tmp5         [V11,T12] (  3,  1.50)     ref  ->  rsi        
     ;  V12 tmp6         [V12    ] (  2,  1   )  struct (16) [rbp-0x40]  do-not-enreg[XS] addr-exposed ld-addr-op unsafe-buffer "stackallocLocal" <UNNAMED>
     ;* V13 tmp7         [V13    ] (  0,  0   )  struct (16) zero-ref    "ReadOnlySpan<T> for CreateSpan<T>" <System.ReadOnlySpan`1[int]>
     ;  V14 tmp8         [V14    ] (  5,  2.50)  struct ( 8) [rbp-0x48]  do-not-enreg[XSF] addr-exposed ld-addr-op unsafe-buffer "stackallocLocal" <UNNAMED>
     ;  V15 tmp9         [V15,T01] (  5,  5   )     ref  ->  r14         class-hnd exact single-def "NewObj constructor temp" <System.UnhandledExceptionEventHandler>
    -;  V16 tmp10        [V16,T16] (  3,  0   )     ref  ->  rbx         class-hnd exact single-def "NewObj constructor temp" <System.ComponentModel.Win32Exception>
    +;  V16 tmp10        [V16,T15] (  3,  0   )     ref  ->  rbx         class-hnd exact single-def "NewObj constructor temp" <System.ComponentModel.Win32Exception>
     ;  V17 tmp11        [V17,T10] (  2,  2   )     ref  ->  rsi         class-hnd exact single-def "Inlining Arg" <System.ConsolePal+<>c>
     ;* V18 tmp12        [V18    ] (  0,  0   )     ref  ->  zero-ref    class-hnd "Inlining Arg" <System.UnhandledExceptionEventHandler>
     ;* V19 tmp13        [V19    ] (  0,  0   )     ref  ->  zero-ref    class-hnd "Inlining Arg" <System.AppDomain>
     ;  V20 tmp14        [V20,T13] (  3,  1.50)     ref  ->  r14         class-hnd "Inline return value spill temp" <System.TerminalFormatStrings>
     ;  V21 tmp15        [V21,T03] (  4,  4   )     ref  ->  rdi         class-hnd exact single-def "Inlining Arg" <System.Lazy`1[System.TerminalFormatStrings]>
    -;  V22 tmp16        [V22    ] (  2,  1   )   byref  ->  [rbp-0x58]  must-init pinned "Inline stloc first use temp"
    +;* V22 tmp16        [V22    ] (  0,  0   )   byref  ->  zero-ref    "Inline stloc first use temp"
     ;* V23 tmp17        [V23    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
     ;  V24 tmp18        [V24,T04] (  6,  2.50)     int  ->  rax         "Inline stloc first use temp"
     ;  V25 FramesRoot   [V25,T00] ( 10,  6   )    long  ->  rbx         "Pinvoke FrameListRoot"
    -;  V26 PInvokeFrame [V26    ] ( 12,  8   )  struct (56) [rbp-0x90]  do-not-enreg[XS] addr-exposed "Pinvoke FrameVar" <UNNAMED>
    +;  V26 PInvokeFrame [V26    ] ( 12,  8   )  struct (56) [rbp-0x88]  do-not-enreg[XS] addr-exposed "Pinvoke FrameVar" <UNNAMED>
     ;* V27 tmp21        [V27    ] (  0,  0   )   byref  ->  zero-ref    single-def "field V05._reference (fldOffset=0x0)" P-INDEP
     ;* V28 tmp22        [V28    ] (  0,  0   )     int  ->  zero-ref    "field V05._length (fldOffset=0x8)" P-INDEP
     ;* V29 tmp23        [V29    ] (  0,  0   )   byref  ->  zero-ref    single-def "field V13._reference (fldOffset=0x0)" P-INDEP
     ;* V30 tmp24        [V30    ] (  0,  0   )     int  ->  zero-ref    "field V13._length (fldOffset=0x8)" P-INDEP
     ;* V31 tmp25        [V31    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
    -;* V32 tmp26        [V32,T15] (  0,  0   )    long  ->  zero-ref    "argument with side effect"
    +;* V32 tmp26        [V32,T14] (  0,  0   )    long  ->  zero-ref    "argument with side effect"
     ;  V33 GsCookie     [V33    ] (  1,  1   )    long  ->  [rbp-0x30]  do-not-enreg[X] addr-exposed "GSSecurityCookie"
     ;  V34 cse0         [V34,T06] (  4,  2   )    long  ->  r15         "CSE #02: moderate"
    -;  V35 cse1         [V35,T14] (  3,  1.50)   byref  ->  rcx         "CSE #03: moderate"
     ;
    -; Lcl frame size = 120
    +; Lcl frame size = 104
     
     G_M57901_IG01:
            push     rbp
            push     r15
            push     r14
            push     r13
            push     r12
            push     rbx
    -       sub      rsp, 120
    +       sub      rsp, 104
            vzeroupper 
    -       lea      rbp, [rsp+0xA0]
    -       xor      eax, eax
    -       mov      qword ptr [rbp-0x58], rax
    +       lea      rbp, [rsp+0x90]
            mov      qword ptr [rbp-0x30], 0xD1FFAB1E
    -						;; size=39 bbWeight=1 PerfScore 10.00
    +						;; size=33 bbWeight=1 PerfScore 8.75
     G_M57901_IG02:
    -       lea      rdi, [rbp-0x90]
    +       lea      rdi, [rbp-0x88]
            call     CORINFO_HELP_INIT_PINVOKE_FRAME
            mov      rbx, rax
            mov      rax, rsp
    -       mov      qword ptr [rbp-0x78], rax
    +       mov      qword ptr [rbp-0x70], rax
            mov      rax, rbp
    -       mov      qword ptr [rbp-0x68], rax
    +       mov      qword ptr [rbp-0x60], rax
            mov      rax, 0xD1FFAB1E      ; code for System.Console:get_Out():System.IO.TextWriter
            call     [rax]System.Console:get_Out():System.IO.TextWriter
    -       mov      gword ptr [rbp-0x98], rax
    +       mov      gword ptr [rbp-0x90], rax
            xor      edi, edi
            mov      dword ptr [rbp-0x4C], edi
     						;; size=53 bbWeight=1 PerfScore 9.75
     G_M57901_IG03:
            test     rax, rax
            je       G_M57901_IG22
            mov      rdi, rax
            call     System.Threading.Monitor:TryEnter_FastPath(System.Object):bool
            test     eax, eax
            jne      SHORT G_M57901_IG05
     						;; size=21 bbWeight=1 PerfScore 3.75
     G_M57901_IG04:
    -       mov      rdi, gword ptr [rbp-0x98]
    +       mov      rdi, gword ptr [rbp-0x90]
            mov      rax, 0xD1FFAB1E      ; code for System.Threading.Monitor:Enter_Slowpath(System.Object)
            call     [rax]System.Threading.Monitor:Enter_Slowpath(System.Object)
     						;; size=19 bbWeight=0.50 PerfScore 2.12
     G_M57901_IG05:
            mov      dword ptr [rbp-0x4C], 1
            mov      rax, 0xD1FFAB1E      ; data for System.ConsolePal:s_initialized
            cmp      byte  ptr [rax], 0
            jne      G_M57901_IG24
     						;; size=26 bbWeight=1 PerfScore 5.25
     G_M57901_IG06:
            mov      rax, 0xD1FFAB1E      ; code for Interop+Sys:InitializeTerminalAndSignalHandling():bool
            call     [rax]Interop+Sys:InitializeTerminalAndSignalHandling():bool
            test     eax, eax
            je       G_M57901_IG23
            mov      rax, 0xD1FFAB1E      ; code for System.AppDomain:get_CurrentDomain():System.AppDomain
            call     [rax]System.AppDomain:get_CurrentDomain():System.AppDomain
            mov      r15, rax
            mov      rdi, 0xD1FFAB1E      ; data for System.ConsolePal+<>c:<>9__108_0
            mov      rdi, gword ptr [rdi]
            test     rdi, rdi
            jne      SHORT G_M57901_IG07
            mov      rdi, 0xD1FFAB1E      ; System.UnhandledExceptionEventHandler
            call     CORINFO_HELP_NEWSFAST
            mov      r14, rax
            mov      rdi, 0xD1FFAB1E      ; const ptr
            mov      rsi, gword ptr [rdi]
            lea      rdi, bword ptr [r14+0x08]
            call     CORINFO_HELP_ASSIGN_REF
            mov      rdi, 0xD1FFAB1E      ; code for System.ConsolePal+<>c:<EnsureInitializedCore>b__108_0(System.Object,System.UnhandledExceptionEventArgs):this
            mov      qword ptr [r14+0x18], rdi
            mov      rdi, 0xD1FFAB1E      ; data for System.ConsolePal+<>c:<>9__108_0
            mov      rsi, r14
            call     CORINFO_HELP_ASSIGN_REF
            mov      rdi, r14
     						;; size=128 bbWeight=0.50 PerfScore 9.88
     G_M57901_IG07:
            cmp      byte  ptr [r15], r15b
            mov      rax, 0xD1FFAB1E      ; code for System.AppContext:add_UnhandledException(System.UnhandledExceptionEventHandler)
            call     [rax]System.AppContext:add_UnhandledException(System.UnhandledExceptionEventHandler)
            mov      rax, 0xD1FFAB1E      ; code for System.Console:get_IsOutputRedirected():bool
            call     [rax]System.Console:get_IsOutputRedirected():bool
            test     eax, eax
            jne      SHORT G_M57901_IG08
            mov      rax, 0xD1FFAB1E      ; const ptr
            mov      rsi, gword ptr [rax]
            jmp      SHORT G_M57901_IG09
     						;; size=46 bbWeight=0.50 PerfScore 7.50
     G_M57901_IG08:
            mov      rax, 0xD1FFAB1E      ; code for System.Console:get_IsInputRedirected():bool
            call     [rax]System.Console:get_IsInputRedirected():bool
            mov      rdi, 0xD1FFAB1E      ; const ptr
            xor      rsi, rsi
            test     eax, eax
            cmove    rsi, gword ptr [rdi]
     						;; size=30 bbWeight=0.50 PerfScore 3.50
     G_M57901_IG09:
            mov      r15, 0xD1FFAB1E      ; data for System.ConsolePal:s_terminalHandle
            mov      rdi, r15
            call     CORINFO_HELP_ASSIGN_REF
            cmp      gword ptr [r15], 0
            je       SHORT G_M57901_IG12
            mov      rdi, 0xD1FFAB1E      ; const ptr
            mov      rdi, gword ptr [rdi]
            cmp      gword ptr [rdi+0x08], 0
            jne      SHORT G_M57901_IG10
            mov      r14, gword ptr [rdi+0x18]
            jmp      SHORT G_M57901_IG11
     						;; size=50 bbWeight=0.50 PerfScore 7.88
     G_M57901_IG10:
            mov      rax, 0xD1FFAB1E      ; code for System.Lazy`1[System.__Canon]:CreateValue():System.__Canon:this
            call     [rax]System.Lazy`1[System.__Canon]:CreateValue():System.__Canon:this
            mov      r14, rax
     						;; size=15 bbWeight=0.50 PerfScore 1.75
     G_M57901_IG11:
            mov      rsi, gword ptr [r14+0x68]
            test     rsi, rsi
            je       SHORT G_M57901_IG12
            mov      rdi, gword ptr [r15]
            mov      rax, 0xD1FFAB1E      ; code for Interop+Sys:SetKeypadXmit(Microsoft.Win32.SafeHandles.SafeFileHandle,System.String)
            call     [rax]Interop+Sys:SetKeypadXmit(Microsoft.Win32.SafeHandles.SafeFileHandle,System.String)
     						;; size=24 bbWeight=0.50 PerfScore 4.25
     G_M57901_IG12:
            mov      rax, 0xD1FFAB1E      ; code for System.Console:get_IsInputRedirected():bool
            call     [rax]System.Console:get_IsInputRedirected():bool
            test     eax, eax
            jne      G_M57901_IG21
            mov      rdi, 0xD1FFAB1E      ; code for System.ConsolePal:InvalidateTerminalSettings()
            mov      rax, 0xD1FFAB1E      ; function address
    -       mov      qword ptr [rbp-0x80], rax
    +       mov      qword ptr [rbp-0x78], rax
            lea      rax, G_M57901_IG15
    -       mov      qword ptr [rbp-0x70], rax
    -       lea      rax, [rbp-0x90]
    +       mov      qword ptr [rbp-0x68], rax
    +       lea      rax, [rbp-0x88]
            mov      qword ptr [rbx+0x08], rax
            mov      byte  ptr [rbx+0x04], 0
     						;; size=70 bbWeight=0.50 PerfScore 5.25
     G_M57901_IG13:
            mov      rax, 0xD1FFAB1E      ; function address
     						;; size=10 bbWeight=0.50 PerfScore 0.12
     G_M57901_IG14:
            call     rax ; Interop+Sys:SetTerminalInvalidationHandler(ptr)
     						;; size=2 bbWeight=0.50 PerfScore 1.50
     G_M57901_IG15:
            mov      byte  ptr [rbx+0x04], 1
            mov      rcx, 0xD1FFAB1E      ; function address
            cmp      dword ptr [rcx], 0
            je       SHORT G_M57901_IG16
            mov      rdi, 0xD1FFAB1E
            call     [rdi]CORINFO_HELP_STOP_FOR_GC
     						;; size=31 bbWeight=0.50 PerfScore 4.25
     G_M57901_IG16:
    -       mov      rcx, qword ptr [rbp-0x88]
    +       mov      rcx, qword ptr [rbp-0x80]
            mov      qword ptr [rbx+0x08], rcx
            mov      rcx, 0xD1FFAB1E      ; static handle
            vmovups  xmm0, xmmword ptr [rcx]
            vmovups  xmmword ptr [rbp-0x40], xmm0
            mov      rcx, 0xD1FFAB1E      ; static handle
            mov      byte  ptr [rcx], 0
    -       mov      bword ptr [rbp-0x58], rcx
            mov      rcx, 0xD1FFAB1E
            lea      rsi, [rbp-0x48]
            lea      rdi, [rbp-0x40]
            mov      edx, 4
            mov      rax, 0xD1FFAB1E      ; function address
    -       mov      qword ptr [rbp-0x80], rax
    +       mov      qword ptr [rbp-0x78], rax
            lea      rax, G_M57901_IG19
    -       mov      qword ptr [rbp-0x70], rax
    -       lea      rax, [rbp-0x90]
    +       mov      qword ptr [rbp-0x68], rax
    +       lea      rax, [rbp-0x88]
            mov      qword ptr [rbx+0x08], rax
            mov      byte  ptr [rbx+0x04], 0
    -						;; size=110 bbWeight=0.50 PerfScore 8.38
    +						;; size=103 bbWeight=0.50 PerfScore 7.88
     G_M57901_IG17:
            mov      rax, 0xD1FFAB1E      ; function address
     						;; size=10 bbWeight=0.50 PerfScore 0.12
     G_M57901_IG18:
            call     rax ; Interop+Sys:<GetControlCharacters>g____PInvoke|12_0(ptr,ptr,int,ptr)
     						;; size=2 bbWeight=0.50 PerfScore 1.50
     G_M57901_IG19:
            mov      byte  ptr [rbx+0x04], 1
            mov      rcx, 0xD1FFAB1E      ; function address
            cmp      dword ptr [rcx], 0
            je       SHORT G_M57901_IG20
            mov      rdi, 0xD1FFAB1E
            call     [rdi]CORINFO_HELP_STOP_FOR_GC
     						;; size=31 bbWeight=0.50 PerfScore 4.25
     G_M57901_IG20:
    -       mov      rdi, qword ptr [rbp-0x88]
    +       mov      rdi, qword ptr [rbp-0x80]
            mov      qword ptr [rbx+0x08], rdi
    -       xor      edi, edi
    -       mov      bword ptr [rbp-0x58], rdi
            movzx    rdi, byte  ptr [rbp-0x48]
            mov      rax, 0xD1FFAB1E      ; data for System.ConsolePal:s_veraseCharacter
            mov      byte  ptr [rax], dil
            movzx    rdi, byte  ptr [rbp-0x47]
            mov      rax, 0xD1FFAB1E      ; data for System.ConsolePal:s_veolCharacter
            mov      byte  ptr [rax], dil
            movzx    rdi, byte  ptr [rbp-0x46]
            mov      rax, 0xD1FFAB1E      ; data for System.ConsolePal:s_veol2Character
            mov      byte  ptr [rax], dil
            movzx    rdi, byte  ptr [rbp-0x45]
            mov      rax, 0xD1FFAB1E      ; data for System.ConsolePal:s_veofCharacter
            mov      byte  ptr [rax], dil
    -						;; size=89 bbWeight=0.50 PerfScore 6.12
    +						;; size=80 bbWeight=0.50 PerfScore 5.50
     G_M57901_IG21:
            mov      rdi, 0xD1FFAB1E      ; data for System.ConsolePal:s_initialized
            mov      byte  ptr [rdi], 1
            jmp      SHORT G_M57901_IG24
     						;; size=15 bbWeight=0.50 PerfScore 1.62
     G_M57901_IG22:
            xor      rdi, rdi
            mov      rcx, 0xD1FFAB1E      ; code for System.ArgumentNullException:Throw(System.String)
            call     [rcx]System.ArgumentNullException:Throw(System.String)
            int3     
     						;; size=15 bbWeight=0 PerfScore 0.00
     G_M57901_IG23:
            mov      rdi, 0xD1FFAB1E      ; System.ComponentModel.Win32Exception
            call     CORINFO_HELP_NEWSFAST
            mov      rbx, rax
            mov      rdi, rbx
            mov      rax, 0xD1FFAB1E      ; code for System.ComponentModel.Win32Exception:.ctor():this
            call     [rax]System.ComponentModel.Win32Exception:.ctor():this
            mov      rdi, rbx
            call     CORINFO_HELP_THROW
            int3     
     						;; size=42 bbWeight=0 PerfScore 0.00
     G_M57901_IG24:
    -       mov      rdi, gword ptr [rbp-0x98]
    +       mov      rdi, gword ptr [rbp-0x90]
            call     System.Threading.Monitor:Exit_FastPath(System.Object):int
            test     eax, eax
            je       SHORT G_M57901_IG26
     						;; size=16 bbWeight=1 PerfScore 3.25
     G_M57901_IG25:
            mov      edi, eax
    -       mov      rsi, gword ptr [rbp-0x98]
    +       mov      rsi, gword ptr [rbp-0x90]
            mov      rax, 0xD1FFAB1E      ; code for System.Threading.Monitor:Exit_Slowpath(int,System.Object)
            call     [rax]System.Threading.Monitor:Exit_Slowpath(int,System.Object)
     						;; size=21 bbWeight=0.50 PerfScore 2.25
     G_M57901_IG26:
            cmp      qword ptr [rbp-0x30], 0xD1FFAB1E
            je       SHORT G_M57901_IG27
            call     CORINFO_HELP_FAIL_FAST
     						;; size=15 bbWeight=1 PerfScore 4.00
     G_M57901_IG27:
            nop      
     						;; size=1 bbWeight=1 PerfScore 0.25
     G_M57901_IG28:
    -       add      rsp, 120
    +       add      rsp, 104
            pop      rbx
            pop      r12
            pop      r13
            pop      r14
            pop      r15
            pop      rbp
            ret      
     						;; size=15 bbWeight=1 PerfScore 4.25
     G_M57901_IG29:
            push     rax
            vzeroupper 
     						;; size=4 bbWeight=0 PerfScore 0.00
     G_M57901_IG30:
            cmp      dword ptr [rbp-0x4C], 0
            je       SHORT G_M57901_IG32
    -       cmp      gword ptr [rbp-0x98], 0
    +       cmp      gword ptr [rbp-0x90], 0
            jne      SHORT G_M57901_IG31
            xor      rdi, rdi
            mov      rax, 0xD1FFAB1E      ; code for System.ArgumentNullException:Throw(System.String)
            call     [rax]System.ArgumentNullException:Throw(System.String)
            int3     
     						;; size=31 bbWeight=0 PerfScore 0.00
     G_M57901_IG31:
    -       mov      rdi, gword ptr [rbp-0x98]
    +       mov      rdi, gword ptr [rbp-0x90]
            call     System.Threading.Monitor:Exit_FastPath(System.Object):int
            test     eax, eax
            je       SHORT G_M57901_IG32
            mov      edi, eax
    -       mov      rsi, gword ptr [rbp-0x98]
    +       mov      rsi, gword ptr [rbp-0x90]
            mov      rax, 0xD1FFAB1E      ; code for System.Threading.Monitor:Exit_Slowpath(int,System.Object)
            call     [rax]System.Threading.Monitor:Exit_Slowpath(int,System.Object)
     						;; size=37 bbWeight=0 PerfScore 0.00
     G_M57901_IG32:
            nop      
     						;; size=1 bbWeight=0 PerfScore 0.00
     G_M57901_IG33:
            add      rsp, 8
            ret      
     						;; size=5 bbWeight=0 PerfScore 0.00
     
    -; Total bytes of code 1024, prolog size 39, PerfScore 112.75, instruction count 217, allocated bytes for code 1024 (MethodHash=c8491dd2) for method System.ConsolePal:EnsureInitializedCore() (FullOpts)
    +; Total bytes of code 1002, prolog size 33, PerfScore 110.38, instruction count 212, allocated bytes for code 1002 (MethodHash=c8491dd2) for method System.ConsolePal:EnsureInitializedCore() (FullOpts)
     ; ============================================================

    Larger list of diffs: https://gist.github.com/MihuBot/d9c7a5df936bcf8c7afb1268135e2dcb

  3. MihuBot commented on Sep 13, 2025

    @MihuBot
    OwnerAuthor
  4. xtqqczze commented on Oct 23, 2025

    @xtqqczze

    dotnet/runtime#120996 will make improvements to System.Data.SqlTypes.SqlDateTime:.cctor()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions