Skip to content

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

Open

Description

@MihuBot

Job completed in 24 minutes 6 seconds (remote runner delay: 1 minute 12 seconds).
dotnet/runtime#119674
Using arguments: -nuget
Main commit: dotnet/runtime@6e0eb83
PR commit: EgorBo/runtime-1@9ae9de7

Diffs

Diffs
Found 113 files with textual diffs.

Summary of Code Size diffs:
(Lower is better)

Total bytes of base: 395612743
Total bytes of diff: 395611483
Total bytes of delta: -1260 (-0.00 % of base)
Total relative delta: -3.25
    diff is an improvement.
    relative diff is an improvement.


Top file improvements (bytes):
        -717 : System.Private.CoreLib.dasm (-0.01 % of base)
        -109 : System.Private.DataContractSerialization.dasm (-0.01 % of base)
         -93 : SkiaSharp.dasm (-0.01 % of base)
         -76 : SixLabors.ImageSharp.dasm (-0.00 % of base)
         -66 : System.Net.Sockets.dasm (-0.02 % of base)
         -64 : System.IO.Hashing.dasm (-0.17 % of base)
         -50 : Microsoft.CodeAnalysis.AnalyzerUtilities.dasm (-0.00 % of base)
         -44 : System.Console.dasm (-0.05 % of base)
         -25 : System.Net.Quic.dasm (-0.02 % of base)
         -16 : SharpCompress.dasm (-0.00 % of base)

10 total files with Code Size differences (10 improved, 0 regressed), 750 unchanged.

Top method improvements (bytes):
         -93 (-23.02 % of base) : SkiaSharp.dasm - SkiaSharp.SKImageInfo:.cctor() (FullOpts)
         -84 (-10.81 % 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)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[int]:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[long]:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[short]:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[System.Nullable`1[int]]:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[System.Numerics.Vector`1[float]]:.cctor() (FullOpts)
         -54 (-8.49 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ReferenceTrackerHost:IReferenceTrackerHost_GetTrackerTarget(nint,nint,ptr):int (FullOpts)
         -44 (-2.06 % of base) : System.Console.dasm - System.ConsolePal:EnsureInitializedCore() (FullOpts) (2 methods)
         -40 (-6.21 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:ComWeakRefToObject(nint,System.Object):System.Object (FullOpts)
         -38 (-8.54 % 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 (-36.00 % of base) : Microsoft.CodeAnalysis.AnalyzerUtilities.dasm - System.IO.Hashing.XxHashShared:DeriveSecretFromSeed(ptr,ulong) (FullOpts)
         -36 (-31.58 % of base) : System.IO.Hashing.dasm - System.IO.Hashing.XxHashShared:DeriveSecretFromSeed(ptr,ulong) (FullOpts)
         -35 (-10.74 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:TryGetComInstance(System.Object,byref):bool (FullOpts)
         -30 (-6.77 % of base) : SixLabors.ImageSharp.dasm - SixLabors.ImageSharp.Formats.Jpeg.Components.ZigZag:ApplyTransposingZigZagOrderingAvx2(byref) (FullOpts)
         -30 (-4.30 % of base) : SixLabors.ImageSharp.dasm - SixLabors.ImageSharp.Formats.Jpeg.Components.ZigZag:ApplyTransposingZigZagOrderingVector128(byref) (FullOpts)
         -27 (-2.10 % of base) : System.Private.DataContractSerialization.dasm - System.Xml.UniqueId:UnsafeParse(ptr,int):this (FullOpts)
         -26 (-5.83 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:TryGetComInterfaceDispatch(nint):ptr (FullOpts)
         -25 (-4.86 % of base) : System.Net.Quic.dasm - System.Net.Quic.MsQuicApi:.ctor(ptr):this (FullOpts)
         -24 (-2.14 % of base) : System.Private.DataContractSerialization.dasm - System.Text.Base64Encoding:GetChars(byte[],int,int,byte[],int):int:this (FullOpts)
         -20 (-10.58 % of base) : System.Private.CoreLib.dasm - System.Diagnostics.Tracing.RuntimeEventSourceHelper:GetCpuUsage():double (FullOpts)
         -20 (-1.42 % of base) : System.Private.DataContractSerialization.dasm - System.Text.Base64Encoding:GetBytes(byte[],int,int,byte[],int):int:this (FullOpts)
         -20 (-1.37 % of base) : System.Private.DataContractSerialization.dasm - System.Text.Base64Encoding:GetBytes(char[],int,int,byte[],int):int:this (FullOpts)
         -18 (-1.71 % of base) : System.Private.DataContractSerialization.dasm - System.Text.Base64Encoding:GetByteCount(char[],int,int):int:this (FullOpts)
         -16 (-4.16 % of base) : SharpCompress.dasm - SharpCompress.Algorithms.Adler32:CalculateSse(uint,System.ReadOnlySpan`1[byte]):uint (FullOpts)
         -16 (-4.16 % of base) : SixLabors.ImageSharp.dasm - SixLabors.ImageSharp.Compression.Zlib.Adler32:CalculateSse(uint,System.ReadOnlySpan`1[byte]):uint (FullOpts)
         -14 (-3.66 % of base) : Microsoft.CodeAnalysis.AnalyzerUtilities.dasm - System.IO.Hashing.XxHash128:HashLengthOver240(ptr,uint,ulong):System.IO.Hashing.XxHash128+Hash128 (FullOpts)
         -14 (-5.22 % of base) : System.IO.Hashing.dasm - System.IO.Hashing.XxHash128:HashLengthOver240(ptr,uint,ulong):System.IO.Hashing.XxHash128+Hash128 (FullOpts)
         -14 (-6.33 % of base) : System.IO.Hashing.dasm - System.IO.Hashing.XxHash3:HashLengthOver240(ptr,uint,ulong):ulong (FullOpts)

Top method improvements (percentages):
         -66 (-47.48 % of base) : System.Net.Sockets.dasm - System.Net.Sockets.UnixDomainSocketEndPoint:.cctor() (FullOpts)
         -36 (-36.00 % of base) : Microsoft.CodeAnalysis.AnalyzerUtilities.dasm - System.IO.Hashing.XxHashShared:DeriveSecretFromSeed(ptr,ulong) (FullOpts)
         -36 (-31.58 % of base) : System.IO.Hashing.dasm - System.IO.Hashing.XxHashShared:DeriveSecretFromSeed(ptr,ulong) (FullOpts)
         -93 (-23.02 % of base) : SkiaSharp.dasm - SkiaSharp.SKImageInfo:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[int]:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[long]:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[short]:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[System.Nullable`1[int]]:.cctor() (FullOpts)
         -60 (-10.83 % of base) : System.Private.CoreLib.dasm - System.StubHelpers.LayoutClassMarshaler`1+Methods[System.Numerics.Vector`1[float]]:.cctor() (FullOpts)
         -84 (-10.81 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:DetermineIdentityAndInner(nint,nint,int,byref,byref,byref) (FullOpts)
         -35 (-10.74 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:TryGetComInstance(System.Object,byref):bool (FullOpts)
         -20 (-10.58 % of base) : System.Private.CoreLib.dasm - System.Diagnostics.Tracing.RuntimeEventSourceHelper:GetCpuUsage():double (FullOpts)
         -38 (-8.54 % 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 (-8.49 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ReferenceTrackerHost:IReferenceTrackerHost_GetTrackerTarget(nint,nint,ptr):int (FullOpts)
         -30 (-6.77 % of base) : SixLabors.ImageSharp.dasm - SixLabors.ImageSharp.Formats.Jpeg.Components.ZigZag:ApplyTransposingZigZagOrderingAvx2(byref) (FullOpts)
         -14 (-6.33 % of base) : System.IO.Hashing.dasm - System.IO.Hashing.XxHash3:HashLengthOver240(ptr,uint,ulong):ulong (FullOpts)
         -40 (-6.21 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:ComWeakRefToObject(nint,System.Object):System.Object (FullOpts)
         -26 (-5.83 % of base) : System.Private.CoreLib.dasm - System.Runtime.InteropServices.ComWrappers:TryGetComInterfaceDispatch(nint):ptr (FullOpts)
         -14 (-5.22 % of base) : System.IO.Hashing.dasm - System.IO.Hashing.XxHash128:HashLengthOver240(ptr,uint,ulong):System.IO.Hashing.XxHash128+Hash128 (FullOpts)
         -25 (-4.86 % of base) : System.Net.Quic.dasm - System.Net.Quic.MsQuicApi:.ctor(ptr):this (FullOpts)
         -30 (-4.30 % of base) : SixLabors.ImageSharp.dasm - SixLabors.ImageSharp.Formats.Jpeg.Components.ZigZag:ApplyTransposingZigZagOrderingVector128(byref) (FullOpts)
         -16 (-4.16 % of base) : SharpCompress.dasm - SharpCompress.Algorithms.Adler32:CalculateSse(uint,System.ReadOnlySpan`1[byte]):uint (FullOpts)
         -16 (-4.16 % of base) : SixLabors.ImageSharp.dasm - SixLabors.ImageSharp.Compression.Zlib.Adler32:CalculateSse(uint,System.ReadOnlySpan`1[byte]):uint (FullOpts)
         -14 (-3.66 % of base) : Microsoft.CodeAnalysis.AnalyzerUtilities.dasm - System.IO.Hashing.XxHash128:HashLengthOver240(ptr,uint,ulong):System.IO.Hashing.XxHash128+Hash128 (FullOpts)
         -24 (-2.14 % of base) : System.Private.DataContractSerialization.dasm - System.Text.Base64Encoding:GetChars(byte[],int,int,byte[],int):int:this (FullOpts)
         -27 (-2.10 % of base) : System.Private.DataContractSerialization.dasm - System.Xml.UniqueId:UnsafeParse(ptr,int):this (FullOpts)
         -44 (-2.06 % of base) : System.Console.dasm - System.ConsolePal:EnsureInitializedCore() (FullOpts) (2 methods)
         -18 (-1.71 % of base) : System.Private.DataContractSerialization.dasm - System.Text.Base64Encoding:GetByteCount(char[],int,int):int:this (FullOpts)
         -20 (-1.42 % of base) : System.Private.DataContractSerialization.dasm - System.Text.Base64Encoding:GetBytes(byte[],int,int,byte[],int):int:this (FullOpts)
         -20 (-1.37 % of base) : System.Private.DataContractSerialization.dasm - System.Text.Base64Encoding:GetBytes(char[],int,int,byte[],int):int:this (FullOpts)

32 total methods with Code Size differences (32 improved, 0 regressed), 2114517 unchanged.

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

Artifacts:

Activity

  1. MihuBot commented on Jul 16, 2026

    @MihuBot
    OwnerAuthor

    Top method improvements

    -93 (-23.02 % of base) - SkiaSharp.SKImageInfo:.cctor()
     ; Assembly listing for method SkiaSharp.SKImageInfo:.cctor() (FullOpts)
     ; Emitting BLENDED_CODE for x64 + VEX + EVEX on Unix
     ; FullOpts code
     ; optimized code
     ; rbp based frame
     ; partially interruptible
     ; No PGO data
     ; Final local variable assignments
     ;
     ;* V00 loc0         [V00    ] (  0,  0   )    long  ->  zero-ref    single-def
    -;  V01 loc1         [V01    ] (  2,  2   )   byref  ->  [rbp-0x30]  do-not-enreg[] must-init pinned
    +;* V01 loc1         [V01    ] (  0,  0   )   byref  ->  zero-ref   
     ;* V02 loc2         [V02    ] (  0,  0   )    long  ->  zero-ref    single-def
    -;  V03 loc3         [V03    ] (  2,  2   )   byref  ->  [rbp-0x38]  do-not-enreg[] must-init pinned
    +;* V03 loc3         [V03    ] (  0,  0   )   byref  ->  zero-ref   
     ;* V04 loc4         [V04    ] (  0,  0   )    long  ->  zero-ref    single-def
    -;  V05 loc5         [V05    ] (  2,  2   )   byref  ->  [rbp-0x40]  do-not-enreg[] must-init pinned
    +;* V05 loc5         [V05    ] (  0,  0   )   byref  ->  zero-ref   
     ;* V06 loc6         [V06    ] (  0,  0   )    long  ->  zero-ref   
    -;  V07 loc7         [V07    ] (  2,  2   )   byref  ->  [rbp-0x48]  do-not-enreg[] must-init pinned
    +;* V07 loc7         [V07    ] (  0,  0   )   byref  ->  zero-ref   
     ;# V08 OutArgs      [V08    ] (  1,  1   )  struct ( 0) [rsp+0x00]  do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
     ;  V09 FramesRoot   [V09,T00] ( 10, 10   )    long  ->  rbx         "Pinvoke FrameListRoot"
    -;  V10 PInvokeFrame [V10    ] ( 12, 12   )  struct (56) [rbp-0x80]  do-not-enreg[XS] addr-exposed "Pinvoke FrameVar" <UNNAMED>
    +;  V10 PInvokeFrame [V10    ] ( 12, 12   )  struct (56) [rbp-0x60]  do-not-enreg[XS] addr-exposed "Pinvoke FrameVar" <UNNAMED>
     ;* V11 tmp3         [V11    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V12 tmp4         [V12    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V13 tmp5         [V13    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V14 tmp6         [V14    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V15 tmp7         [V15,T01] (  0,  0   )    long  ->  zero-ref    "argument with side effect"
    -;  TEMP_01                                     int  ->  [rbp-0x84]
    +;  TEMP_01                                     int  ->  [rbp-0x64]
     ;
    -; Lcl frame size = 104
    +; Lcl frame size = 72
     
     G_M9169_IG01:
            push     rbp
            push     r15
            push     r14
            push     r13
            push     r12
            push     rbx
    -       sub      rsp, 104
    +       sub      rsp, 72
            vzeroupper 
    -       lea      rbp, [rsp+0x90]
    -       xor      eax, eax
    -       mov      qword ptr [rbp-0x48], rax
    -       vxorps   xmm8, xmm8, xmm8
    -       vmovdqa  xmmword ptr [rbp-0x40], xmm8
    -       mov      qword ptr [rbp-0x30], rax
    -						;; size=45 bbWeight=1 PerfScore 11.33
    +       lea      rbp, [rsp+0x70]
    +						;; size=22 bbWeight=1 PerfScore 7.75
     G_M9169_IG02:
    -       lea      rdi, [rbp-0x80]
    +       lea      rdi, [rbp-0x60]
            call     CORINFO_HELP_INIT_PINVOKE_FRAME
            mov      rbx, rax
            mov      rax, rsp
    -       mov      qword ptr [rbp-0x68], rax
    +       mov      qword ptr [rbp-0x48], rax
            mov      rax, rbp
    -       mov      qword ptr [rbp-0x58], rax
    +       mov      qword ptr [rbp-0x38], rax
            mov      rax, 0xD1FFAB1E      ; function address
    -       mov      qword ptr [rbp-0x70], rax
    +       mov      qword ptr [rbp-0x50], rax
            lea      rax, G_M9169_IG05
    -       mov      qword ptr [rbp-0x60], rax
    -       lea      rax, [rbp-0x80]
    +       mov      qword ptr [rbp-0x40], rax
    +       lea      rax, [rbp-0x60]
            mov      qword ptr [rbx+0x08], rax
            mov      byte  ptr [rbx+0x04], 0
     						;; size=63 bbWeight=1 PerfScore 10.00
     G_M9169_IG03:
            mov      rax, 0xD1FFAB1E      ; code for SkiaSharp.SkiaApi:sk_colortype_get_default_8888():int
     						;; size=10 bbWeight=1 PerfScore 0.25
     G_M9169_IG04:
            call     [rax]SkiaSharp.SkiaApi:sk_colortype_get_default_8888():int
     						;; size=2 bbWeight=1 PerfScore 3.00
     G_M9169_IG05:
            mov      edi, eax
    -       mov      dword ptr [rbp-0x84], edi
    +       mov      dword ptr [rbp-0x64], edi
            mov      byte  ptr [rbx+0x04], 1
            mov      rcx, 0xD1FFAB1E      ; function address
            cmp      dword ptr [rcx], 0
            je       SHORT G_M9169_IG06
            mov      rsi, 0xD1FFAB1E
            call     [rsi]CORINFO_HELP_STOP_FOR_GC
    -						;; size=39 bbWeight=1 PerfScore 8.75
    +						;; size=36 bbWeight=1 PerfScore 8.75
     G_M9169_IG06:
    -       mov      rdi, qword ptr [rbp-0x78]
    +       mov      rdi, qword ptr [rbp-0x58]
            mov      qword ptr [rbx+0x08], rdi
            mov      rax, 0xD1FFAB1E      ; code for SkiaSharp.SkiaExtensions:FromNative(int):int
    -       mov      edi, dword ptr [rbp-0x84]
    +       mov      edi, dword ptr [rbp-0x64]
            call     [rax]SkiaSharp.SkiaExtensions:FromNative(int):int
            mov      rcx, 0xD1FFAB1E      ; data for SkiaSharp.SKImageInfo:PlatformColorType
            mov      dword ptr [rcx], eax
    -       mov      rcx, 0xD1FFAB1E      ; data for SkiaSharp.SKImageInfo:PlatformColorAlphaShift
    -       mov      bword ptr [rbp-0x30], rcx
    -       mov      rcx, 0xD1FFAB1E      ; data for SkiaSharp.SKImageInfo:PlatformColorRedShift
    -       mov      bword ptr [rbp-0x38], rcx
    -       mov      rcx, 0xD1FFAB1E      ; data for SkiaSharp.SKImageInfo:PlatformColorGreenShift
    -       mov      bword ptr [rbp-0x40], rcx
    -       mov      rcx, 0xD1FFAB1E      ; data for SkiaSharp.SKImageInfo:PlatformColorBlueShift
    -       mov      bword ptr [rbp-0x48], rcx
    +       mov      rcx, 0xD1FFAB1E
            mov      rdi, 0xD1FFAB1E
            mov      rsi, 0xD1FFAB1E
            mov      rdx, 0xD1FFAB1E
            mov      rax, 0xD1FFAB1E      ; function address
    -       mov      qword ptr [rbp-0x70], rax
    +       mov      qword ptr [rbp-0x50], rax
            lea      rax, G_M9169_IG09
    -       mov      qword ptr [rbp-0x60], rax
    -       lea      rax, [rbp-0x80]
    +       mov      qword ptr [rbp-0x40], rax
    +       lea      rax, [rbp-0x60]
            mov      qword ptr [rbx+0x08], rax
            mov      byte  ptr [rbx+0x04], 0
    -						;; size=161 bbWeight=1 PerfScore 19.00
    +						;; size=112 bbWeight=1 PerfScore 14.25
     G_M9169_IG07:
            mov      rax, 0xD1FFAB1E      ; code for SkiaSharp.SkiaApi:sk_color_get_bit_shift(ptr,ptr,ptr,ptr)
     						;; size=10 bbWeight=1 PerfScore 0.25
     G_M9169_IG08:
            call     [rax]SkiaSharp.SkiaApi:sk_color_get_bit_shift(ptr,ptr,ptr,ptr)
     						;; size=2 bbWeight=1 PerfScore 3.00
     G_M9169_IG09:
            mov      byte  ptr [rbx+0x04], 1
            mov      rcx, 0xD1FFAB1E      ; function address
            cmp      dword ptr [rcx], 0
            je       SHORT G_M9169_IG10
            mov      rdi, 0xD1FFAB1E
            call     [rdi]CORINFO_HELP_STOP_FOR_GC
     						;; size=31 bbWeight=1 PerfScore 7.50
     G_M9169_IG10:
    -       mov      rax, qword ptr [rbp-0x78]
    +       mov      rax, qword ptr [rbp-0x58]
            mov      qword ptr [rbx+0x08], rax
    -       xor      eax, eax
    -       mov      bword ptr [rbp-0x48], rax
    -						;; size=14 bbWeight=1 PerfScore 3.25
    +						;; size=8 bbWeight=1 PerfScore 2.00
     G_M9169_IG11:
    -       mov      bword ptr [rbp-0x40], rax
    -						;; size=4 bbWeight=1 PerfScore 1.00
    -G_M9169_IG12:
    -       mov      bword ptr [rbp-0x38], rax
    -						;; size=4 bbWeight=1 PerfScore 1.00
    -G_M9169_IG13:
    -       mov      bword ptr [rbp-0x30], rax
    -						;; size=4 bbWeight=1 PerfScore 1.00
    -G_M9169_IG14:
    -       add      rsp, 104
    +       add      rsp, 72
            pop      rbx
            pop      r12
            pop      r13
            pop      r14
            pop      r15
            pop      rbp
            ret      
     						;; size=15 bbWeight=1 PerfScore 4.25
     
    -; Total bytes of code 404, prolog size 45, PerfScore 73.58, instruction count 86, allocated bytes for code 404 (MethodHash=17c0dc2e) for method SkiaSharp.SKImageInfo:.cctor() (FullOpts)
    +; Total bytes of code 311, prolog size 22, PerfScore 61.00, instruction count 69, allocated bytes for code 311 (MethodHash=17c0dc2e) for method SkiaSharp.SKImageInfo:.cctor() (FullOpts)
     ; ============================================================
    -84 (-10.81 % 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 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]  do-not-enreg[] 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]  do-not-enreg[] 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]  do-not-enreg[] must-init pinned "Inline stloc first use temp"
    +;  V27 tmp18        [V27    ] (  2,  1   )   byref  ->  [rbp-0x40]  do-not-enreg[] 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]  do-not-enreg[] 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]  do-not-enreg[] must-init pinned "Inline stloc first use temp"
    +;  V33 tmp24        [V33    ] (  2,  1   )   byref  ->  [rbp-0x48]  do-not-enreg[] 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 12.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.50
     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_IG27
    -       mov      rdx, 0xD1FFAB1E      ; static handle
    -       mov      bword ptr [rbp-0x40], rdx
    +       je       G_M12505_IG25
            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.25
     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_IG27
    -       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_IG25
    +       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.25
     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_IG27
    -       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_IG25
    +       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.25
    -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_IG28
    -						;; size=8 bbWeight=0.50 PerfScore 1.12
    -G_M12505_IG20:
    +       jl       SHORT G_M12505_IG26
    +						;; 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.00
    -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 1.88
    -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      rdi, 0xD1FFAB1E      ; 'pUnk'
            mov      rax, 0xD1FFAB1E      ; code for System.ArgumentNullException:Throw(System.String)
            call     [rax]System.ArgumentNullException:Throw(System.String)
            int3     
     						;; size=23 bbWeight=0 PerfScore 0.00
    -G_M12505_IG28:
    +G_M12505_IG26:
            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_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 777, prolog size 41, PerfScore 87.46, instruction count 180, allocated bytes for code 777 (MethodHash=c175cf26) for method System.Runtime.InteropServices.ComWrappers:DetermineIdentityAndInner(nint,nint,int,byref,byref,byref) (FullOpts)
    +; Total bytes of code 693, prolog size 32, PerfScore 83.62, instruction count 169, allocated bytes for code 693 (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 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]  do-not-enreg[] 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]  do-not-enreg[] 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]  do-not-enreg[] 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 4.25
    -G_M57672_IG06:
    -       add      rsp, 32
    +       jne      SHORT G_M57672_IG05
    +						;; size=17 bbWeight=1 PerfScore 6.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 18.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 11.00, instruction count 15, allocated bytes for code 73 (MethodHash=76e61eb7) for method System.Net.Sockets.UnixDomainSocketEndPoint:.cctor() (FullOpts)
     ; ============================================================
    -60 (-10.83 % of base) - System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:.cctor()
     ; Assembly listing for method System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:.cctor() (FullOpts)
     ; Emitting BLENDED_CODE for x64 + VEX + EVEX on Unix
     ; FullOpts code
     ; optimized code
     ; rbp based frame
     ; partially interruptible
     ; No PGO data
     ; 0 inlinees with PGO data; 6 single block inlinees; 2 inlinees without PGO data
     ; Final local variable assignments
     ;
     ;  V00 loc0         [V00    ] (  5,  4   )  struct ( 8) [rbp-0x30]  do-not-enreg[XS] must-init addr-exposed ld-addr-op <System.RuntimeTypeHandle>
     ;  V01 loc1         [V01,T04] (  2,  2   )   ubyte  ->  rdx         ld-addr-op
     ;  V02 loc2         [V02    ] (  3,  3   )     int  ->  [rbp-0x38]  do-not-enreg[X] addr-exposed ld-addr-op
     ;# V03 OutArgs      [V03    ] (  1,  1   )  struct ( 0) [rsp+0x00]  do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
     ;* V04 tmp1         [V04    ] (  0,  0   )  struct (16) zero-ref    multireg-arg ld-addr-op "NewObj constructor temp" <System.Runtime.CompilerServices.QCallTypeHandle>
     ;* V05 tmp2         [V05    ] (  0,  0   )  struct (16) zero-ref    multireg-arg ld-addr-op "NewObj constructor temp" <System.Runtime.CompilerServices.QCallTypeHandle>
     ;* V06 tmp3         [V06    ] (  0,  0   )  struct ( 8) zero-ref    ld-addr-op "NewObj constructor temp" <System.RuntimeTypeHandle>
     ;  V07 tmp4         [V07,T03] (  3,  2   )    long  ->  rsi         "Inline return value spill temp"
     ;  V08 tmp5         [V08,T01] (  3,  5   )     ref  ->  rdi         class-hnd exact single-def "dup spill" <System.RuntimeType>
     ;* V09 tmp6         [V09    ] (  0,  0   )     ref  ->  zero-ref    single-def
     ;* V10 tmp7         [V10    ] (  0,  0   )   ubyte  ->  zero-ref    "Inline return value spill temp"
     ;* V11 tmp8         [V11    ] (  0,  0   )   byref  ->  zero-ref    single-def "Inline stloc first use temp"
     ;* V12 tmp9         [V12    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
     ;* V13 tmp10        [V13    ] (  0,  0   )  struct (16) zero-ref    "Inlining Arg" <System.Runtime.CompilerServices.QCallTypeHandle>
     ;  V14 tmp11        [V14    ] (  2,  2   )     int  ->  [rbp-0x40]  do-not-enreg[X] addr-exposed ld-addr-op "Inline ldloca(s) first use temp"
     ;* V15 tmp12        [V15    ] (  0,  0   )     int  ->  zero-ref    "Spill before store to pinned local"
    -;  V16 tmp13        [V16,T08] (  3,  1.50)    long  ->  rsi         "Inline return value spill temp"
    +;  V16 tmp13        [V16,T05] (  3,  1.50)    long  ->  rsi         "Inline return value spill temp"
     ;  V17 tmp14        [V17,T02] (  3,  3   )     ref  ->  rdx         class-hnd exact single-def "dup spill" <System.RuntimeType>
     ;* V18 tmp15        [V18    ] (  0,  0   )     ref  ->  zero-ref    single-def
    -;  V19 tmp16        [V19    ] (  2,  1   )   byref  ->  [rbp-0x48]  do-not-enreg[] must-init pinned "Inline stloc first use temp"
    +;* V19 tmp16        [V19    ] (  0,  0   )   byref  ->  zero-ref    "Inline stloc first use temp"
     ;* V20 tmp17        [V20    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
    -;  V21 tmp18        [V21    ] (  2,  1   )   byref  ->  [rbp-0x50]  do-not-enreg[] must-init pinned "Inline stloc first use temp"
    +;* V21 tmp18        [V21    ] (  0,  0   )   byref  ->  zero-ref    "Inline stloc first use temp"
     ;* V22 tmp19        [V22    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
    -;  V23 tmp20        [V23    ] (  2,  1   )   byref  ->  [rbp-0x58]  do-not-enreg[] must-init pinned "Inline stloc first use temp"
    +;* V23 tmp20        [V23    ] (  0,  0   )   byref  ->  zero-ref    "Inline stloc first use temp"
     ;* V24 tmp21        [V24    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
     ;* V25 tmp22        [V25    ] (  0,  0   )  struct (16) zero-ref    "Inlining Arg" <System.Runtime.CompilerServices.QCallTypeHandle>
     ;  V26 FramesRoot   [V26,T00] ( 10,  8   )    long  ->  rbx         "Pinvoke FrameListRoot"
    -;  V27 PInvokeFrame [V27    ] ( 12, 10   )  struct (56) [rbp-0x90]  do-not-enreg[XS] addr-exposed "Pinvoke FrameVar" <UNNAMED>
    +;  V27 PInvokeFrame [V27    ] ( 12, 10   )  struct (56) [rbp-0x78]  do-not-enreg[XS] addr-exposed "Pinvoke FrameVar" <UNNAMED>
     ;  V28 tmp25        [V28    ] (  5,  4   )     ref  ->  [rbp-0x30]  do-not-enreg[X] addr-exposed "field V00.m_type (fldOffset=0x0)" P-DEP
    -;* V29 tmp26        [V29,T09] (  0,  0   )    long  ->  zero-ref    "field V04._ptr (fldOffset=0x0)" P-INDEP
    +;* V29 tmp26        [V29,T06] (  0,  0   )    long  ->  zero-ref    "field V04._ptr (fldOffset=0x0)" P-INDEP
     ;* V30 tmp27        [V30    ] (  0,  0   )    long  ->  zero-ref    "field V04._handle (fldOffset=0x8)" P-INDEP
    -;* V31 tmp28        [V31,T11] (  0,  0   )    long  ->  zero-ref    "field V05._ptr (fldOffset=0x0)" P-INDEP
    +;* V31 tmp28        [V31,T08] (  0,  0   )    long  ->  zero-ref    "field V05._ptr (fldOffset=0x0)" P-INDEP
     ;* V32 tmp29        [V32    ] (  0,  0   )    long  ->  zero-ref    "field V05._handle (fldOffset=0x8)" P-INDEP
     ;* V33 tmp30        [V33    ] (  0,  0   )     ref  ->  zero-ref    single-def "field V06.m_type (fldOffset=0x0)" P-INDEP
     ;* V34 tmp31        [V34    ] (  0,  0   )    long  ->  zero-ref    "field V13._ptr (fldOffset=0x0)" P-INDEP
     ;* V35 tmp32        [V35    ] (  0,  0   )    long  ->  zero-ref    "field V13._handle (fldOffset=0x8)" P-INDEP
     ;* V36 tmp33        [V36    ] (  0,  0   )    long  ->  zero-ref    "field V25._ptr (fldOffset=0x0)" P-INDEP
     ;* V37 tmp34        [V37    ] (  0,  0   )    long  ->  zero-ref    "field V25._handle (fldOffset=0x8)" P-INDEP
     ;* V38 tmp35        [V38    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V39 tmp36        [V39    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V40 tmp37        [V40    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
    -;* V41 tmp38        [V41,T10] (  0,  0   )    long  ->  zero-ref    "argument with side effect"
    -;  V42 cse0         [V42,T05] (  3,  1.50)   byref  ->  rcx         "CSE #01: moderate"
    -;  V43 cse1         [V43,T06] (  3,  1.50)   byref  ->  rdi         "CSE #02: moderate"
    -;  V44 cse2         [V44,T07] (  3,  1.50)   byref  ->  rdx         "CSE #03: moderate"
    +;* V41 tmp38        [V41,T07] (  0,  0   )    long  ->  zero-ref    "argument with side effect"
     ;
    -; Lcl frame size = 104
    +; Lcl frame size = 88
     
     G_M22967_IG01:
            push     rbp
            push     r15
            push     r14
            push     r13
            push     r12
            push     rbx
    -       sub      rsp, 104
    +       sub      rsp, 88
            vzeroupper 
    -       lea      rbp, [rsp+0x90]
    +       lea      rbp, [rsp+0x80]
            xor      eax, eax
    -       mov      qword ptr [rbp-0x58], rax
    -       vxorps   xmm8, xmm8, xmm8
    -       vmovdqu  ymmword ptr [rbp-0x50], ymm8
            mov      qword ptr [rbp-0x30], rax
    -						;; size=45 bbWeight=1 PerfScore 11.33
    +						;; size=31 bbWeight=1 PerfScore 9.00
     G_M22967_IG02:
    -       lea      rdi, [rbp-0x90]
    +       lea      rdi, [rbp-0x78]
            call     CORINFO_HELP_INIT_PINVOKE_FRAME
            mov      rbx, rax
            mov      rdi, rsp
    -       mov      qword ptr [rbp-0x78], rdi
    +       mov      qword ptr [rbp-0x60], rdi
            mov      rdi, rbp
    -       mov      qword ptr [rbp-0x68], rdi
    +       mov      qword ptr [rbp-0x50], rdi
            mov      rdi, 0xD1FFAB1E      ; 'System.Byte'
            mov      gword ptr [rbp-0x30], rdi
            mov      rdi, gword ptr [rbp-0x30]
            test     rdi, rdi
            je       SHORT G_M22967_IG04
    -						;; size=52 bbWeight=1 PerfScore 7.75
    +						;; size=49 bbWeight=1 PerfScore 7.75
     G_M22967_IG03:
            mov      rsi, qword ptr [rdi+0x18]
            jmp      SHORT G_M22967_IG05
     						;; size=6 bbWeight=0.50 PerfScore 2.00
     G_M22967_IG04:
            xor      esi, esi
     						;; size=2 bbWeight=0.50 PerfScore 0.12
     G_M22967_IG05:
            xor      edi, edi
            mov      dword ptr [rbp-0x38], edi
            lea      rdi, [rbp-0x30]
            lea      rdx, [rbp-0x40]
            lea      rcx, [rbp-0x38]
            mov      rax, 0xD1FFAB1E      ; function address
    -       mov      qword ptr [rbp-0x80], rax
    +       mov      qword ptr [rbp-0x68], rax
            lea      rax, G_M22967_IG08
    -       mov      qword ptr [rbp-0x70], rax
    -       lea      rax, [rbp-0x90]
    +       mov      qword ptr [rbp-0x58], rax
    +       lea      rax, [rbp-0x78]
            mov      qword ptr [rbx+0x08], rax
            mov      byte  ptr [rbx+0x04], 0
    -						;; size=57 bbWeight=1 PerfScore 8.50
    +						;; size=54 bbWeight=1 PerfScore 8.50
     G_M22967_IG06:
            mov      rax, 0xD1FFAB1E      ; function address
     						;; size=10 bbWeight=1 PerfScore 0.25
     G_M22967_IG07:
            call     rax ; System.Runtime.InteropServices.Marshal:<HasLayout>g____PInvoke|21_0(System.Runtime.CompilerServices.QCallTypeHandle,ptr,ptr):int
     						;; size=2 bbWeight=1 PerfScore 3.00
     G_M22967_IG08:
            mov      byte  ptr [rbx+0x04], 1
            mov      rcx, 0xD1FFAB1E      ; function address
            cmp      dword ptr [rcx], 0
            je       SHORT G_M22967_IG09
            mov      rdi, 0xD1FFAB1E
            call     [rdi]CORINFO_HELP_STOP_FOR_GC
     						;; size=31 bbWeight=1 PerfScore 7.50
     G_M22967_IG09:
    -       mov      rdx, qword ptr [rbp-0x88]
    +       mov      rdx, qword ptr [rbp-0x70]
            mov      qword ptr [rbx+0x08], rdx
            cmp      dword ptr [rbp-0x40], 0
            setne    dl
            movzx    rdx, dl
            movsxd   rdi, dword ptr [rbp-0x38]
            mov      rsi, 0xD1FFAB1E      ; data for System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:s_unmanagedSize
            mov      qword ptr [rsi], rdi
            test     edx, edx
            jne      G_M22967_IG19
    -						;; size=46 bbWeight=1 PerfScore 7.25
    +						;; size=43 bbWeight=1 PerfScore 7.25
     G_M22967_IG10:
            mov      rdx, gword ptr [rbp-0x30]
            test     rdx, rdx
            je       SHORT G_M22967_IG11
            mov      rsi, qword ptr [rdx+0x18]
            jmp      SHORT G_M22967_IG12
     						;; size=15 bbWeight=0.50 PerfScore 3.12
     G_M22967_IG11:
            xor      esi, esi
     						;; size=2 bbWeight=0.50 PerfScore 0.12
     G_M22967_IG12:
    -       mov      rdx, 0xD1FFAB1E      ; static handle
    -       xor      edi, edi
    -       mov      qword ptr [rdx], rdi
    +       xor      edx, edx
            mov      rdi, 0xD1FFAB1E      ; static handle
    -       xor      ecx, ecx
    -       mov      qword ptr [rdi], rcx
    -       mov      rcx, 0xD1FFAB1E      ; static handle
    -       xor      r8d, r8d
    -       mov      qword ptr [rcx], r8
    -       mov      bword ptr [rbp-0x48], rcx
    -       mov      bword ptr [rbp-0x50], rdi
    -       mov      bword ptr [rbp-0x58], rdx
    +       mov      qword ptr [rdi], rdx
    +						;; size=15 bbWeight=0.50 PerfScore 0.75
    +G_M22967_IG13:
    +       mov      rdi, 0xD1FFAB1E      ; static handle
    +       mov      qword ptr [rdi], rdx
    +						;; size=13 bbWeight=0.50 PerfScore 0.62
    +G_M22967_IG14:
    +       mov      rdi, 0xD1FFAB1E      ; static handle
    +       mov      qword ptr [rdi], rdx
            mov      rdx, 0xD1FFAB1E
            lea      rdi, [rbp-0x30]
            mov      rcx, 0xD1FFAB1E
            mov      r8, 0xD1FFAB1E
            mov      rax, 0xD1FFAB1E      ; function address
    -       mov      qword ptr [rbp-0x80], rax
    -       lea      rax, G_M22967_IG15
    -       mov      qword ptr [rbp-0x70], rax
    -       lea      rax, [rbp-0x90]
    +       mov      qword ptr [rbp-0x68], rax
    +       lea      rax, G_M22967_IG17
    +       mov      qword ptr [rbp-0x58], rax
    +       lea      rax, [rbp-0x78]
            mov      qword ptr [rbx+0x08], rax
            mov      byte  ptr [rbx+0x04], 0
    -						;; size=132 bbWeight=0.50 PerfScore 7.25
    -G_M22967_IG13:
    +						;; size=84 bbWeight=0.50 PerfScore 4.12
    +G_M22967_IG15:
            mov      rax, 0xD1FFAB1E      ; function address
     						;; size=10 bbWeight=0.50 PerfScore 0.12
    -G_M22967_IG14:
    +G_M22967_IG16:
            call     rax ; System.StubHelpers.StubHelpers:<CreateLayoutClassMarshalStubs>g____PInvoke|18_0(System.Runtime.CompilerServices.QCallTypeHandle,ptr,ptr,ptr)
     						;; size=2 bbWeight=0.50 PerfScore 1.50
    -G_M22967_IG15:
    +G_M22967_IG17:
            mov      byte  ptr [rbx+0x04], 1
            mov      rcx, 0xD1FFAB1E      ; function address
            cmp      dword ptr [rcx], 0
    -       je       SHORT G_M22967_IG16
    +       je       SHORT G_M22967_IG18
            mov      rdi, 0xD1FFAB1E
            call     [rdi]CORINFO_HELP_STOP_FOR_GC
     						;; size=31 bbWeight=0.50 PerfScore 3.75
    -G_M22967_IG16:
    -       mov      rax, qword ptr [rbp-0x88]
    -       mov      qword ptr [rbx+0x08], rax
    -       xor      eax, eax
    -       mov      bword ptr [rbp-0x58], rax
    -						;; size=17 bbWeight=0.50 PerfScore 1.62
    -G_M22967_IG17:
    -       mov      bword ptr [rbp-0x50], rax
    -						;; size=4 bbWeight=0.50 PerfScore 0.50
     G_M22967_IG18:
    -       mov      bword ptr [rbp-0x48], rax
    +       mov      rax, qword ptr [rbp-0x70]
    +       mov      qword ptr [rbx+0x08], rax
            jmp      SHORT G_M22967_IG20
    -						;; size=6 bbWeight=0.50 PerfScore 1.50
    +						;; size=10 bbWeight=0.50 PerfScore 2.00
     G_M22967_IG19:
            mov      rax, 0xD1FFAB1E      ; code for System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:BlittableConvertToUnmanaged(byref,ptr,byref)
            mov      rcx, 0xD1FFAB1E      ; data for System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:_convertToUnmanaged
            mov      qword ptr [rcx], rax
            mov      rax, 0xD1FFAB1E      ; code for System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:BlittableConvertToManaged(byref,ptr,byref)
            mov      rcx, 0xD1FFAB1E      ; data for System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:_convertToManaged
            mov      qword ptr [rcx], rax
            mov      rax, 0xD1FFAB1E      ; code for System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:BlittableFree(byref,ptr,byref)
            mov      rcx, 0xD1FFAB1E      ; data for System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:_free
            mov      qword ptr [rcx], rax
     						;; size=69 bbWeight=0.50 PerfScore 2.25
     G_M22967_IG20:
    -       add      rsp, 104
    +       add      rsp, 88
            pop      rbx
            pop      r12
            pop      r13
            pop      r14
            pop      r15
            pop      rbp
            ret      
     						;; size=15 bbWeight=1 PerfScore 4.25
     
    -; Total bytes of code 554, prolog size 45, PerfScore 73.71, instruction count 120, allocated bytes for code 554 (MethodHash=c773a648) for method System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:.cctor() (FullOpts)
    +; Total bytes of code 494, prolog size 31, PerfScore 68.00, instruction count 108, allocated bytes for code 494 (MethodHash=c773a648) for method System.StubHelpers.LayoutClassMarshaler`1+Methods[byte]:.cctor() (FullOpts)
     ; ============================================================
    -60 (-10.83 % of base) - System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:.cctor()
     ; Assembly listing for method System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:.cctor() (FullOpts)
     ; Emitting BLENDED_CODE for x64 + VEX + EVEX on Unix
     ; FullOpts code
     ; optimized code
     ; rbp based frame
     ; partially interruptible
     ; No PGO data
     ; 0 inlinees with PGO data; 6 single block inlinees; 2 inlinees without PGO data
     ; Final local variable assignments
     ;
     ;  V00 loc0         [V00    ] (  5,  4   )  struct ( 8) [rbp-0x30]  do-not-enreg[XS] must-init addr-exposed ld-addr-op <System.RuntimeTypeHandle>
     ;  V01 loc1         [V01,T04] (  2,  2   )   ubyte  ->  rdx         ld-addr-op
     ;  V02 loc2         [V02    ] (  3,  3   )     int  ->  [rbp-0x38]  do-not-enreg[X] addr-exposed ld-addr-op
     ;# V03 OutArgs      [V03    ] (  1,  1   )  struct ( 0) [rsp+0x00]  do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
     ;* V04 tmp1         [V04    ] (  0,  0   )  struct (16) zero-ref    multireg-arg ld-addr-op "NewObj constructor temp" <System.Runtime.CompilerServices.QCallTypeHandle>
     ;* V05 tmp2         [V05    ] (  0,  0   )  struct (16) zero-ref    multireg-arg ld-addr-op "NewObj constructor temp" <System.Runtime.CompilerServices.QCallTypeHandle>
     ;* V06 tmp3         [V06    ] (  0,  0   )  struct ( 8) zero-ref    ld-addr-op "NewObj constructor temp" <System.RuntimeTypeHandle>
     ;  V07 tmp4         [V07,T03] (  3,  2   )    long  ->  rsi         "Inline return value spill temp"
     ;  V08 tmp5         [V08,T01] (  3,  5   )     ref  ->  rdi         class-hnd exact single-def "dup spill" <System.RuntimeType>
     ;* V09 tmp6         [V09    ] (  0,  0   )     ref  ->  zero-ref    single-def
     ;* V10 tmp7         [V10    ] (  0,  0   )   ubyte  ->  zero-ref    "Inline return value spill temp"
     ;* V11 tmp8         [V11    ] (  0,  0   )   byref  ->  zero-ref    single-def "Inline stloc first use temp"
     ;* V12 tmp9         [V12    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
     ;* V13 tmp10        [V13    ] (  0,  0   )  struct (16) zero-ref    "Inlining Arg" <System.Runtime.CompilerServices.QCallTypeHandle>
     ;  V14 tmp11        [V14    ] (  2,  2   )     int  ->  [rbp-0x40]  do-not-enreg[X] addr-exposed ld-addr-op "Inline ldloca(s) first use temp"
     ;* V15 tmp12        [V15    ] (  0,  0   )     int  ->  zero-ref    "Spill before store to pinned local"
    -;  V16 tmp13        [V16,T08] (  3,  1.50)    long  ->  rsi         "Inline return value spill temp"
    +;  V16 tmp13        [V16,T05] (  3,  1.50)    long  ->  rsi         "Inline return value spill temp"
     ;  V17 tmp14        [V17,T02] (  3,  3   )     ref  ->  rdx         class-hnd exact single-def "dup spill" <System.RuntimeType>
     ;* V18 tmp15        [V18    ] (  0,  0   )     ref  ->  zero-ref    single-def
    -;  V19 tmp16        [V19    ] (  2,  1   )   byref  ->  [rbp-0x48]  do-not-enreg[] must-init pinned "Inline stloc first use temp"
    +;* V19 tmp16        [V19    ] (  0,  0   )   byref  ->  zero-ref    "Inline stloc first use temp"
     ;* V20 tmp17        [V20    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
    -;  V21 tmp18        [V21    ] (  2,  1   )   byref  ->  [rbp-0x50]  do-not-enreg[] must-init pinned "Inline stloc first use temp"
    +;* V21 tmp18        [V21    ] (  0,  0   )   byref  ->  zero-ref    "Inline stloc first use temp"
     ;* V22 tmp19        [V22    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
    -;  V23 tmp20        [V23    ] (  2,  1   )   byref  ->  [rbp-0x58]  do-not-enreg[] must-init pinned "Inline stloc first use temp"
    +;* V23 tmp20        [V23    ] (  0,  0   )   byref  ->  zero-ref    "Inline stloc first use temp"
     ;* V24 tmp21        [V24    ] (  0,  0   )    long  ->  zero-ref    "Inline stloc first use temp"
     ;* V25 tmp22        [V25    ] (  0,  0   )  struct (16) zero-ref    "Inlining Arg" <System.Runtime.CompilerServices.QCallTypeHandle>
     ;  V26 FramesRoot   [V26,T00] ( 10,  8   )    long  ->  rbx         "Pinvoke FrameListRoot"
    -;  V27 PInvokeFrame [V27    ] ( 12, 10   )  struct (56) [rbp-0x90]  do-not-enreg[XS] addr-exposed "Pinvoke FrameVar" <UNNAMED>
    +;  V27 PInvokeFrame [V27    ] ( 12, 10   )  struct (56) [rbp-0x78]  do-not-enreg[XS] addr-exposed "Pinvoke FrameVar" <UNNAMED>
     ;  V28 tmp25        [V28    ] (  5,  4   )     ref  ->  [rbp-0x30]  do-not-enreg[X] addr-exposed "field V00.m_type (fldOffset=0x0)" P-DEP
    -;* V29 tmp26        [V29,T09] (  0,  0   )    long  ->  zero-ref    "field V04._ptr (fldOffset=0x0)" P-INDEP
    +;* V29 tmp26        [V29,T06] (  0,  0   )    long  ->  zero-ref    "field V04._ptr (fldOffset=0x0)" P-INDEP
     ;* V30 tmp27        [V30    ] (  0,  0   )    long  ->  zero-ref    "field V04._handle (fldOffset=0x8)" P-INDEP
    -;* V31 tmp28        [V31,T11] (  0,  0   )    long  ->  zero-ref    "field V05._ptr (fldOffset=0x0)" P-INDEP
    +;* V31 tmp28        [V31,T08] (  0,  0   )    long  ->  zero-ref    "field V05._ptr (fldOffset=0x0)" P-INDEP
     ;* V32 tmp29        [V32    ] (  0,  0   )    long  ->  zero-ref    "field V05._handle (fldOffset=0x8)" P-INDEP
     ;* V33 tmp30        [V33    ] (  0,  0   )     ref  ->  zero-ref    single-def "field V06.m_type (fldOffset=0x0)" P-INDEP
     ;* V34 tmp31        [V34    ] (  0,  0   )    long  ->  zero-ref    "field V13._ptr (fldOffset=0x0)" P-INDEP
     ;* V35 tmp32        [V35    ] (  0,  0   )    long  ->  zero-ref    "field V13._handle (fldOffset=0x8)" P-INDEP
     ;* V36 tmp33        [V36    ] (  0,  0   )    long  ->  zero-ref    "field V25._ptr (fldOffset=0x0)" P-INDEP
     ;* V37 tmp34        [V37    ] (  0,  0   )    long  ->  zero-ref    "field V25._handle (fldOffset=0x8)" P-INDEP
     ;* V38 tmp35        [V38    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V39 tmp36        [V39    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
     ;* V40 tmp37        [V40    ] (  0,  0   )    long  ->  zero-ref    "Cast away GC"
    -;* V41 tmp38        [V41,T10] (  0,  0   )    long  ->  zero-ref    "argument with side effect"
    -;  V42 cse0         [V42,T05] (  3,  1.50)   byref  ->  rcx         "CSE #01: moderate"
    -;  V43 cse1         [V43,T06] (  3,  1.50)   byref  ->  rdi         "CSE #02: moderate"
    -;  V44 cse2         [V44,T07] (  3,  1.50)   byref  ->  rdx         "CSE #03: moderate"
    +;* V41 tmp38        [V41,T07] (  0,  0   )    long  ->  zero-ref    "argument with side effect"
     ;
    -; Lcl frame size = 104
    +; Lcl frame size = 88
     
     G_M14664_IG01:
            push     rbp
            push     r15
            push     r14
            push     r13
            push     r12
            push     rbx
    -       sub      rsp, 104
    +       sub      rsp, 88
            vzeroupper 
    -       lea      rbp, [rsp+0x90]
    +       lea      rbp, [rsp+0x80]
            xor      eax, eax
    -       mov      qword ptr [rbp-0x58], rax
    -       vxorps   xmm8, xmm8, xmm8
    -       vmovdqu  ymmword ptr [rbp-0x50], ymm8
            mov      qword ptr [rbp-0x30], rax
    -						;; size=45 bbWeight=1 PerfScore 11.33
    +						;; size=31 bbWeight=1 PerfScore 9.00
     G_M14664_IG02:
    -       lea      rdi, [rbp-0x90]
    +       lea      rdi, [rbp-0x78]
            call     CORINFO_HELP_INIT_PINVOKE_FRAME
            mov      rbx, rax
            mov      rdi, rsp
    -       mov      qword ptr [rbp-0x78], rdi
    +       mov      qword ptr [rbp-0x60], rdi
            mov      rdi, rbp
    -       mov      qword ptr [rbp-0x68], rdi
    +       mov      qword ptr [rbp-0x50], rdi
            mov      rdi, 0xD1FFAB1E      ; 'System.Double'
            mov      gword ptr [rbp-0x30], rdi
            mov      rdi, gword ptr [rbp-0x30]
            test     rdi, rdi
            je       SHORT G_M14664_IG04
    -						;; size=52 bbWeight=1 PerfScore 7.75
    +						;; size=49 bbWeight=1 PerfScore 7.75
     G_M14664_IG03:
            mov      rsi, qword ptr [rdi+0x18]
            jmp      SHORT G_M14664_IG05
     						;; size=6 bbWeight=0.50 PerfScore 2.00
     G_M14664_IG04:
            xor      esi, esi
     						;; size=2 bbWeight=0.50 PerfScore 0.12
     G_M14664_IG05:
            xor      edi, edi
            mov      dword ptr [rbp-0x38], edi
            lea      rdi, [rbp-0x30]
            lea      rdx, [rbp-0x40]
            lea      rcx, [rbp-0x38]
            mov      rax, 0xD1FFAB1E      ; function address
    -       mov      qword ptr [rbp-0x80], rax
    +       mov      qword ptr [rbp-0x68], rax
            lea      rax, G_M14664_IG08
    -       mov      qword ptr [rbp-0x70], rax
    -       lea      rax, [rbp-0x90]
    +       mov      qword ptr [rbp-0x58], rax
    +       lea      rax, [rbp-0x78]
            mov      qword ptr [rbx+0x08], rax
            mov      byte  ptr [rbx+0x04], 0
    -						;; size=57 bbWeight=1 PerfScore 8.50
    +						;; size=54 bbWeight=1 PerfScore 8.50
     G_M14664_IG06:
            mov      rax, 0xD1FFAB1E      ; function address
     						;; size=10 bbWeight=1 PerfScore 0.25
     G_M14664_IG07:
            call     rax ; System.Runtime.InteropServices.Marshal:<HasLayout>g____PInvoke|21_0(System.Runtime.CompilerServices.QCallTypeHandle,ptr,ptr):int
     						;; size=2 bbWeight=1 PerfScore 3.00
     G_M14664_IG08:
            mov      byte  ptr [rbx+0x04], 1
            mov      rcx, 0xD1FFAB1E      ; function address
            cmp      dword ptr [rcx], 0
            je       SHORT G_M14664_IG09
            mov      rdi, 0xD1FFAB1E
            call     [rdi]CORINFO_HELP_STOP_FOR_GC
     						;; size=31 bbWeight=1 PerfScore 7.50
     G_M14664_IG09:
    -       mov      rdx, qword ptr [rbp-0x88]
    +       mov      rdx, qword ptr [rbp-0x70]
            mov      qword ptr [rbx+0x08], rdx
            cmp      dword ptr [rbp-0x40], 0
            setne    dl
            movzx    rdx, dl
            movsxd   rdi, dword ptr [rbp-0x38]
            mov      rsi, 0xD1FFAB1E      ; data for System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:s_unmanagedSize
            mov      qword ptr [rsi], rdi
            test     edx, edx
            jne      G_M14664_IG19
    -						;; size=46 bbWeight=1 PerfScore 7.25
    +						;; size=43 bbWeight=1 PerfScore 7.25
     G_M14664_IG10:
            mov      rdx, gword ptr [rbp-0x30]
            test     rdx, rdx
            je       SHORT G_M14664_IG11
            mov      rsi, qword ptr [rdx+0x18]
            jmp      SHORT G_M14664_IG12
     						;; size=15 bbWeight=0.50 PerfScore 3.12
     G_M14664_IG11:
            xor      esi, esi
     						;; size=2 bbWeight=0.50 PerfScore 0.12
     G_M14664_IG12:
    -       mov      rdx, 0xD1FFAB1E      ; static handle
    -       xor      edi, edi
    -       mov      qword ptr [rdx], rdi
    +       xor      edx, edx
            mov      rdi, 0xD1FFAB1E      ; static handle
    -       xor      ecx, ecx
    -       mov      qword ptr [rdi], rcx
    -       mov      rcx, 0xD1FFAB1E      ; static handle
    -       xor      r8d, r8d
    -       mov      qword ptr [rcx], r8
    -       mov      bword ptr [rbp-0x48], rcx
    -       mov      bword ptr [rbp-0x50], rdi
    -       mov      bword ptr [rbp-0x58], rdx
    +       mov      qword ptr [rdi], rdx
    +						;; size=15 bbWeight=0.50 PerfScore 0.75
    +G_M14664_IG13:
    +       mov      rdi, 0xD1FFAB1E      ; static handle
    +       mov      qword ptr [rdi], rdx
    +						;; size=13 bbWeight=0.50 PerfScore 0.62
    +G_M14664_IG14:
    +       mov      rdi, 0xD1FFAB1E      ; static handle
    +       mov      qword ptr [rdi], rdx
            mov      rdx, 0xD1FFAB1E
            lea      rdi, [rbp-0x30]
            mov      rcx, 0xD1FFAB1E
            mov      r8, 0xD1FFAB1E
            mov      rax, 0xD1FFAB1E      ; function address
    -       mov      qword ptr [rbp-0x80], rax
    -       lea      rax, G_M14664_IG15
    -       mov      qword ptr [rbp-0x70], rax
    -       lea      rax, [rbp-0x90]
    +       mov      qword ptr [rbp-0x68], rax
    +       lea      rax, G_M14664_IG17
    +       mov      qword ptr [rbp-0x58], rax
    +       lea      rax, [rbp-0x78]
            mov      qword ptr [rbx+0x08], rax
            mov      byte  ptr [rbx+0x04], 0
    -						;; size=132 bbWeight=0.50 PerfScore 7.25
    -G_M14664_IG13:
    +						;; size=84 bbWeight=0.50 PerfScore 4.12
    +G_M14664_IG15:
            mov      rax, 0xD1FFAB1E      ; function address
     						;; size=10 bbWeight=0.50 PerfScore 0.12
    -G_M14664_IG14:
    +G_M14664_IG16:
            call     rax ; System.StubHelpers.StubHelpers:<CreateLayoutClassMarshalStubs>g____PInvoke|18_0(System.Runtime.CompilerServices.QCallTypeHandle,ptr,ptr,ptr)
     						;; size=2 bbWeight=0.50 PerfScore 1.50
    -G_M14664_IG15:
    +G_M14664_IG17:
            mov      byte  ptr [rbx+0x04], 1
            mov      rcx, 0xD1FFAB1E      ; function address
            cmp      dword ptr [rcx], 0
    -       je       SHORT G_M14664_IG16
    +       je       SHORT G_M14664_IG18
            mov      rdi, 0xD1FFAB1E
            call     [rdi]CORINFO_HELP_STOP_FOR_GC
     						;; size=31 bbWeight=0.50 PerfScore 3.75
    -G_M14664_IG16:
    -       mov      rax, qword ptr [rbp-0x88]
    -       mov      qword ptr [rbx+0x08], rax
    -       xor      eax, eax
    -       mov      bword ptr [rbp-0x58], rax
    -						;; size=17 bbWeight=0.50 PerfScore 1.62
    -G_M14664_IG17:
    -       mov      bword ptr [rbp-0x50], rax
    -						;; size=4 bbWeight=0.50 PerfScore 0.50
     G_M14664_IG18:
    -       mov      bword ptr [rbp-0x48], rax
    +       mov      rax, qword ptr [rbp-0x70]
    +       mov      qword ptr [rbx+0x08], rax
            jmp      SHORT G_M14664_IG20
    -						;; size=6 bbWeight=0.50 PerfScore 1.50
    +						;; size=10 bbWeight=0.50 PerfScore 2.00
     G_M14664_IG19:
            mov      rax, 0xD1FFAB1E      ; code for System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:BlittableConvertToUnmanaged(byref,ptr,byref)
            mov      rcx, 0xD1FFAB1E      ; data for System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:_convertToUnmanaged
            mov      qword ptr [rcx], rax
            mov      rax, 0xD1FFAB1E      ; code for System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:BlittableConvertToManaged(byref,ptr,byref)
            mov      rcx, 0xD1FFAB1E      ; data for System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:_convertToManaged
            mov      qword ptr [rcx], rax
            mov      rax, 0xD1FFAB1E      ; code for System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:BlittableFree(byref,ptr,byref)
            mov      rcx, 0xD1FFAB1E      ; data for System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:_free
            mov      qword ptr [rcx], rax
     						;; size=69 bbWeight=0.50 PerfScore 2.25
     G_M14664_IG20:
    -       add      rsp, 104
    +       add      rsp, 88
            pop      rbx
            pop      r12
            pop      r13
            pop      r14
            pop      r15
            pop      rbp
            ret      
     						;; size=15 bbWeight=1 PerfScore 4.25
     
    -; Total bytes of code 554, prolog size 45, PerfScore 73.71, instruction count 120, allocated bytes for code 554 (MethodHash=ca8ec6b7) for method System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:.cctor() (FullOpts)
    +; Total bytes of code 494, prolog size 31, PerfScore 68.00, instruction count 108, allocated bytes for code 494 (MethodHash=ca8ec6b7) for method System.StubHelpers.LayoutClassMarshaler`1+Methods[double]:.cctor() (FullOpts)
     ; ============================================================

    Note: some changes were skipped as they were too large to fit into a comment.

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

  2. MihuBot commented on Jul 16, 2026

    @MihuBot
    OwnerAuthor
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