forked from MihaZupan/runtime-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JitDiff X64] [hez2010] JIT: Devirtualization and inlining for GVM #1003
Comments
Top method regressions514 (158.15 % of base) - Microsoft.Extensions.Hosting.Internal.ConsoleLifetime:OnApplicationStarted():this ; Assembly listing for method Microsoft.Extensions.Hosting.Internal.ConsoleLifetime:OnApplicationStarted():this (FullOpts)
; Emitting BLENDED_CODE for X64 with AVX512 - Unix
; FullOpts code
; optimized code
; rbp based frame
; partially interruptible
; No PGO data
-; 0 inlinees with PGO data; 18 single block inlinees; 0 inlinees without PGO data
+; 0 inlinees with PGO data; 21 single block inlinees; 3 inlinees without PGO data
; Final local variable assignments
;
; V00 this [V00,T00] ( 7, 7 ) ref -> rbx this class-hnd single-def <Microsoft.Extensions.Hosting.Internal.ConsoleLifetime>
-; V01 OutArgs [V01 ] ( 1, 1 ) struct ( 8) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <UNNAMED>
-; V02 tmp1 [V02,T03] ( 2, 4 ) ref -> r15 class-hnd single-def "impAppendStmt" <Microsoft.Extensions.Logging.ILogger>
-; V03 tmp2 [V03,T01] ( 3, 6 ) ref -> r14 class-hnd exact single-def "NewArr temp" <System.Object[]>
-; V04 tmp3 [V04,T04] ( 2, 4 ) ref -> r15 class-hnd single-def "impAppendStmt" <Microsoft.Extensions.Logging.ILogger>
-; V05 tmp4 [V05,T05] ( 2, 4 ) ref -> rax class-hnd exact single-def "Strict ordering of exceptions for Array store" <System.String>
-; V06 tmp5 [V06,T02] ( 3, 6 ) ref -> r14 class-hnd exact single-def "NewArr temp" <System.Object[]>
-; V07 tmp6 [V07,T06] ( 2, 4 ) ref -> r15 class-hnd single-def "impAppendStmt" <Microsoft.Extensions.Logging.ILogger>
-; V08 tmp7 [V08,T07] ( 2, 4 ) ref -> rax class-hnd exact single-def "Strict ordering of exceptions for Array store" <System.String>
-; V09 tmp8 [V09,T08] ( 2, 4 ) ref -> rdx class-hnd single-def "Inlining Arg" <System.Object[]>
+; V01 OutArgs [V01 ] ( 1, 1 ) struct (24) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <UNNAMED>
+; V02 tmp1 [V02,T01] ( 4, 8 ) ref -> r15 class-hnd single-def "impAppendStmt" <Microsoft.Extensions.Logging.ILogger>
+; V03 tmp2 [V03,T04] ( 3, 6 ) ref -> r13 class-hnd exact single-def "NewArr temp" <System.Object[]>
+; V04 tmp3 [V04,T02] ( 4, 8 ) ref -> r15 class-hnd single-def "impAppendStmt" <Microsoft.Extensions.Logging.ILogger>
+; V05 tmp4 [V05,T08] ( 2, 4 ) ref -> rax class-hnd exact single-def "Strict ordering of exceptions for Array store" <System.String>
+; V06 tmp5 [V06,T05] ( 3, 6 ) ref -> r13 class-hnd exact single-def "NewArr temp" <System.Object[]>
+; V07 tmp6 [V07,T03] ( 4, 8 ) ref -> r15 class-hnd single-def "impAppendStmt" <Microsoft.Extensions.Logging.ILogger>
+; V08 tmp7 [V08,T09] ( 2, 4 ) ref -> rax class-hnd exact single-def "Strict ordering of exceptions for Array store" <System.String>
+; V09 tmp8 [V09,T10] ( 2, 4 ) ref -> rdx class-hnd single-def "Inlining Arg" <System.Object[]>
;* V10 tmp9 [V10 ] ( 0, 0 ) struct (16) zero-ref "spilled call-like call argument" <Microsoft.Extensions.Logging.EventId>
;* V11 tmp10 [V11 ] ( 0, 0 ) struct (16) zero-ref multireg-arg ld-addr-op "NewObj constructor temp" <Microsoft.Extensions.Logging.EventId>
-;* V12 tmp11 [V12 ] ( 0, 0 ) struct (16) zero-ref "spilled call-like call argument" <Microsoft.Extensions.Logging.EventId>
-;* V13 tmp12 [V13 ] ( 0, 0 ) struct (16) zero-ref multireg-arg ld-addr-op "NewObj constructor temp" <Microsoft.Extensions.Logging.EventId>
+; V12 tmp11 [V12 ] ( 2, 4 ) struct (24) [rbp-0x40] do-not-enreg[XS] must-init addr-exposed ld-addr-op "NewObj constructor temp" <Microsoft.Extensions.Logging.FormattedLogValues>
+; V13 tmp12 [V13,T14] ( 2, 4 ) long -> r13 "VirtualCall through function pointer"
;* V14 tmp13 [V14 ] ( 0, 0 ) struct (16) zero-ref "spilled call-like call argument" <Microsoft.Extensions.Logging.EventId>
;* V15 tmp14 [V15 ] ( 0, 0 ) struct (16) zero-ref multireg-arg ld-addr-op "NewObj constructor temp" <Microsoft.Extensions.Logging.EventId>
-;* V16 tmp15 [V16 ] ( 0, 0 ) ref -> zero-ref "field V10.<Name>k__BackingField (fldOffset=0x0)" P-INDEP
-;* V17 tmp16 [V17 ] ( 0, 0 ) int -> zero-ref "field V10.<Id>k__BackingField (fldOffset=0x8)" P-INDEP
-;* V18 tmp17 [V18,T09] ( 0, 0 ) ref -> zero-ref single-def "field V11.<Name>k__BackingField (fldOffset=0x0)" P-INDEP
-;* V19 tmp18 [V19,T12] ( 0, 0 ) int -> zero-ref single-def "field V11.<Id>k__BackingField (fldOffset=0x8)" P-INDEP
-;* V20 tmp19 [V20 ] ( 0, 0 ) ref -> zero-ref "field V12.<Name>k__BackingField (fldOffset=0x0)" P-INDEP
-;* V21 tmp20 [V21 ] ( 0, 0 ) int -> zero-ref "field V12.<Id>k__BackingField (fldOffset=0x8)" P-INDEP
-;* V22 tmp21 [V22,T10] ( 0, 0 ) ref -> zero-ref single-def "field V13.<Name>k__BackingField (fldOffset=0x0)" P-INDEP
-;* V23 tmp22 [V23,T13] ( 0, 0 ) int -> zero-ref single-def "field V13.<Id>k__BackingField (fldOffset=0x8)" P-INDEP
-;* V24 tmp23 [V24 ] ( 0, 0 ) ref -> zero-ref "field V14.<Name>k__BackingField (fldOffset=0x0)" P-INDEP
-;* V25 tmp24 [V25 ] ( 0, 0 ) int -> zero-ref "field V14.<Id>k__BackingField (fldOffset=0x8)" P-INDEP
-;* V26 tmp25 [V26,T11] ( 0, 0 ) ref -> zero-ref single-def "field V15.<Name>k__BackingField (fldOffset=0x0)" P-INDEP
-;* V27 tmp26 [V27,T14] ( 0, 0 ) int -> zero-ref single-def "field V15.<Id>k__BackingField (fldOffset=0x8)" P-INDEP
+; V16 tmp15 [V16 ] ( 2, 4 ) struct (24) [rbp-0x58] do-not-enreg[XS] must-init addr-exposed ld-addr-op "NewObj constructor temp" <Microsoft.Extensions.Logging.FormattedLogValues>
+; V17 tmp16 [V17,T15] ( 2, 4 ) long -> rax "VirtualCall through function pointer"
+;* V18 tmp17 [V18 ] ( 0, 0 ) struct (16) zero-ref "spilled call-like call argument" <Microsoft.Extensions.Logging.EventId>
+;* V19 tmp18 [V19 ] ( 0, 0 ) struct (16) zero-ref multireg-arg ld-addr-op "NewObj constructor temp" <Microsoft.Extensions.Logging.EventId>
+; V20 tmp19 [V20 ] ( 2, 4 ) struct (24) [rbp-0x70] do-not-enreg[XS] must-init addr-exposed ld-addr-op "NewObj constructor temp" <Microsoft.Extensions.Logging.FormattedLogValues>
+; V21 tmp20 [V21,T16] ( 2, 4 ) long -> rax "VirtualCall through function pointer"
+;* V22 tmp21 [V22 ] ( 0, 0 ) ref -> zero-ref single-def "field V10.<Name>k__BackingField (fldOffset=0x0)" P-INDEP
+;* V23 tmp22 [V23 ] ( 0, 0 ) int -> zero-ref single-def "field V10.<Id>k__BackingField (fldOffset=0x8)" P-INDEP
+;* V24 tmp23 [V24,T20] ( 0, 0 ) ref -> zero-ref single-def "field V11.<Name>k__BackingField (fldOffset=0x0)" P-INDEP
+;* V25 tmp24 [V25,T24] ( 0, 0 ) int -> zero-ref single-def "field V11.<Id>k__BackingField (fldOffset=0x8)" P-INDEP
+; V26 tmp25 [V26 ] ( 2, 4 ) ref -> [rbp-0x40] do-not-enreg[X] addr-exposed "field V12._formatter (fldOffset=0x0)" P-DEP
+; V27 tmp26 [V27 ] ( 2, 4 ) ref -> [rbp-0x38] do-not-enreg[X] addr-exposed "field V12._values (fldOffset=0x8)" P-DEP
+; V28 tmp27 [V28 ] ( 2, 4 ) ref -> [rbp-0x30] do-not-enreg[X] addr-exposed "field V12._originalMessage (fldOffset=0x10)" P-DEP
+;* V29 tmp28 [V29 ] ( 0, 0 ) ref -> zero-ref single-def "field V14.<Name>k__BackingField (fldOffset=0x0)" P-INDEP
+;* V30 tmp29 [V30 ] ( 0, 0 ) int -> zero-ref single-def "field V14.<Id>k__BackingField (fldOffset=0x8)" P-INDEP
+;* V31 tmp30 [V31,T21] ( 0, 0 ) ref -> zero-ref single-def "field V15.<Name>k__BackingField (fldOffset=0x0)" P-INDEP
+;* V32 tmp31 [V32,T25] ( 0, 0 ) int -> zero-ref single-def "field V15.<Id>k__BackingField (fldOffset=0x8)" P-INDEP
+; V33 tmp32 [V33 ] ( 2, 4 ) ref -> [rbp-0x58] do-not-enreg[X] addr-exposed "field V16._formatter (fldOffset=0x0)" P-DEP
+; V34 tmp33 [V34 ] ( 2, 4 ) ref -> [rbp-0x50] do-not-enreg[X] addr-exposed "field V16._values (fldOffset=0x8)" P-DEP
+; V35 tmp34 [V35 ] ( 2, 4 ) ref -> [rbp-0x48] do-not-enreg[X] addr-exposed "field V16._originalMessage (fldOffset=0x10)" P-DEP
+;* V36 tmp35 [V36 ] ( 0, 0 ) ref -> zero-ref single-def "field V18.<Name>k__BackingField (fldOffset=0x0)" P-INDEP
+;* V37 tmp36 [V37 ] ( 0, 0 ) int -> zero-ref single-def "field V18.<Id>k__BackingField (fldOffset=0x8)" P-INDEP
+;* V38 tmp37 [V38,T22] ( 0, 0 ) ref -> zero-ref single-def "field V19.<Name>k__BackingField (fldOffset=0x0)" P-INDEP
+;* V39 tmp38 [V39,T26] ( 0, 0 ) int -> zero-ref single-def "field V19.<Id>k__BackingField (fldOffset=0x8)" P-INDEP
+; V40 tmp39 [V40 ] ( 2, 4 ) ref -> [rbp-0x70] do-not-enreg[X] addr-exposed "field V20._formatter (fldOffset=0x0)" P-DEP
+; V41 tmp40 [V41 ] ( 2, 4 ) ref -> [rbp-0x68] do-not-enreg[X] addr-exposed "field V20._values (fldOffset=0x8)" P-DEP
+; V42 tmp41 [V42 ] ( 2, 4 ) ref -> [rbp-0x60] do-not-enreg[X] addr-exposed "field V20._originalMessage (fldOffset=0x10)" P-DEP
+; V43 tmp42 [V43,T11] ( 2, 4 ) ref -> r9 single-def "argument with side effect"
+; V44 tmp43 [V44,T17] ( 2, 4 ) struct (24) [rbp-0x88] do-not-enreg[S] must-init single-def "argument with side effect" <Microsoft.Extensions.Logging.FormattedLogValues>
+; V45 tmp44 [V45,T12] ( 2, 4 ) ref -> r9 single-def "argument with side effect"
+; V46 tmp45 [V46,T18] ( 2, 4 ) struct (24) [rbp-0xA0] do-not-enreg[S] must-init single-def "argument with side effect" <Microsoft.Extensions.Logging.FormattedLogValues>
+; V47 tmp46 [V47,T13] ( 2, 4 ) ref -> r9 single-def "argument with side effect"
+; V48 tmp47 [V48,T19] ( 2, 4 ) struct (24) [rbp-0xB8] do-not-enreg[S] must-init single-def "argument with side effect" <Microsoft.Extensions.Logging.FormattedLogValues>
+;* V49 cse0 [V49,T23] ( 0, 0 ) byref -> zero-ref "CSE #03: moderate"
+; V50 cse1 [V50,T06] ( 4, 4 ) long -> r14 "CSE #01: moderate"
+; V51 cse2 [V51,T07] ( 4, 4 ) long -> r12 "CSE #04: moderate"
;
-; Lcl frame size = 8
+; Lcl frame size = 168
G_M28826_IG01:
push rbp
push r15
push r14
+ push r13
+ push r12
push rbx
- push rax
- lea rbp, [rsp+0x20]
+ sub rsp, 168
+ lea rbp, [rsp+0xD0]
+ xor eax, eax
+ mov qword ptr [rbp-0xB8], rax
+ vxorps xmm8, xmm8, xmm8
+ vmovdqu32 zmmword ptr [rbp-0xB0], zmm8
+ vmovdqu32 zmmword ptr [rbp-0x70], zmm8
+ mov qword ptr [rbp-0x30], rax
mov rbx, rdi
- ;; size=15 bbWeight=1 PerfScore 5.75
+ ;; size=66 bbWeight=1 PerfScore 13.58
G_M28826_IG02:
mov r15, gword ptr [rbx+0x28]
mov rdi, 0xD1FFAB1E ; global ptr
test byte ptr [rdi], 1
- je G_M28826_IG05
+ je G_M28826_IG14
;; size=23 bbWeight=1 PerfScore 6.25
G_M28826_IG03:
- mov rdx, 0xD1FFAB1E ; data for System.Array+EmptyArray`1[System.Object]:Value
- mov rdx, gword ptr [rdx]
- mov gword ptr [rsp], rdx
+ mov rdi, 0xD1FFAB1E ; data for System.Array+EmptyArray`1[System.Object]:Value
+ mov rdx, gword ptr [rdi]
+ test r15, r15
+ jne SHORT G_M28826_IG05
+ ;; size=18 bbWeight=1 PerfScore 3.50
+G_M28826_IG04:
+ mov edi, 401
+ mov rsi, 0xD1FFAB1E
+ call CORINFO_HELP_STRCNS
+ mov rdi, rax
+ mov rax, 0xD1FFAB1E ; code for System.ThrowHelper:Throw(System.String)
+ call [rax]System.ThrowHelper:Throw(System.String)
+ int3
+ ;; size=36 bbWeight=0.50 PerfScore 2.62
+G_M28826_IG05:
+ lea rdi, [rbp-0x40]
+ mov rsi, 0xD1FFAB1E ; 'Application started. Press Ctrl+C to shut down.'
+ mov rax, 0xD1FFAB1E ; code for Microsoft.Extensions.Logging.FormattedLogValues:.ctor(System.String,System.Object[]):this
+ call [rax]Microsoft.Extensions.Logging.FormattedLogValues:.ctor(System.String,System.Object[]):this
+ mov rdi, r15
+ mov r14, 0xD1FFAB1E ; Microsoft.Extensions.Logging.ILogger
+ mov rsi, r14
+ mov rdx, 0xD1FFAB1E ; token handle
+ mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_VIRTUAL_FUNC_PTR
+ call [rax]CORINFO_HELP_VIRTUAL_FUNC_PTR
+ mov r13, rax
+ ;; size=67 bbWeight=1 PerfScore 8.50
+G_M28826_IG06:
+ vmovdqu xmm0, xmmword ptr [rbp-0x40]
+ vmovdqu xmmword ptr [rbp-0x88], xmm0
+ mov rdi, qword ptr [rbp-0x30]
+ mov qword ptr [rbp-0x78], rdi
+ ;; size=21 bbWeight=1 PerfScore 6.00
+G_M28826_IG07:
+ mov rdi, 0xD1FFAB1E ; global ptr
+ test byte ptr [rdi], 1
+ je G_M28826_IG15
+ ;; size=19 bbWeight=1 PerfScore 4.25
+G_M28826_IG08:
+ mov r12, 0xD1FFAB1E ; data for Microsoft.Extensions.Logging.LoggerExtensions:_messageFormatter
+ mov r9, gword ptr [r12]
+ lea rdi, [rsp]
+ lea rsi, [rbp-0x88]
+ mov rcx, gword ptr [rsi]
+ mov gword ptr [rsp], rcx
+ add rsi, 8
+ add rdi, 8
+ mov rcx, gword ptr [rsi]
+ mov gword ptr [rsp+0x08], rcx
+ add rsi, 8
+ add rdi, 8
+ mov rcx, gword ptr [rsi]
+ mov gword ptr [rsp+0x10], rcx
xor rdx, rdx
xor ecx, ecx
mov rdi, r15
mov esi, 2
xor r8, r8
- mov r9, 0xD1FFAB1E ; 'Application started. Press Ctrl+C to shut down.'
- mov rax, 0xD1FFAB1E ; code for Microsoft.Extensions.Logging.LoggerExtensions:Log(Microsoft.Extensions.Logging.ILogger,int,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])
- call [rax]Microsoft.Extensions.Logging.LoggerExtensions:Log(Microsoft.Extensions.Logging.ILogger,int,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])
+ call r13
mov r15, gword ptr [rbx+0x28]
mov rdi, 0xD1FFAB1E ; System.Object[]
mov esi, 1
call CORINFO_HELP_NEWARR_1_OBJ
- mov r14, rax
+ mov r13, rax
mov rdi, gword ptr [rbx+0x10]
mov r11, 0xD1FFAB1E ; code for Microsoft.Extensions.Hosting.IHostEnvironment:get_EnvironmentName():System.String:this
call [r11]Microsoft.Extensions.Hosting.IHostEnvironment:get_EnvironmentName():System.String:this
- lea rdi, bword ptr [r14+0x10]
+ lea rdi, bword ptr [r13+0x10]
mov rsi, rax
call CORINFO_HELP_ASSIGN_REF
- mov gword ptr [rsp], r14
+ test r15, r15
+ je G_M28826_IG04
+ lea rdi, [rbp-0x58]
+ mov rdx, r13
+ mov rsi, 0xD1FFAB1E ; 'Hosting environment: {EnvName}'
+ mov rax, 0xD1FFAB1E ; code for Microsoft.Extensions.Logging.FormattedLogValues:.ctor(System.String,System.Object[]):this
+ call [rax]Microsoft.Extensions.Logging.FormattedLogValues:.ctor(System.String,System.Object[]):this
+ mov rdi, r15
+ mov rsi, r14
+ mov rdx, 0xD1FFAB1E ; token handle
+ mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_VIRTUAL_FUNC_PTR
+ call [rax]CORINFO_HELP_VIRTUAL_FUNC_PTR
+ ;; size=204 bbWeight=1 PerfScore 37.75
+G_M28826_IG09:
+ vmovdqu xmm0, xmmword ptr [rbp-0x58]
+ vmovdqu xmmword ptr [rbp-0xA0], xmm0
+ mov r9, qword ptr [rbp-0x48]
+ mov qword ptr [rbp-0x90], r9
+ ;; size=24 bbWeight=1 PerfScore 6.00
+G_M28826_IG10:
+ mov r9, gword ptr [r12]
+ lea rdi, [rsp]
+ lea rsi, [rbp-0xA0]
+ mov rcx, gword ptr [rsi]
+ mov gword ptr [rsp], rcx
+ add rsi, 8
+ add rdi, 8
+ mov rcx, gword ptr [rsi]
+ mov gword ptr [rsp+0x08], rcx
+ add rsi, 8
+ add rdi, 8
+ mov rcx, gword ptr [rsi]
+ mov gword ptr [rsp+0x10], rcx
xor rdx, rdx
xor ecx, ecx
mov rdi, r15
mov esi, 2
xor r8, r8
- mov r9, 0xD1FFAB1E ; 'Hosting environment: {EnvName}'
- mov rax, 0xD1FFAB1E ; code for Microsoft.Extensions.Logging.LoggerExtensions:Log(Microsoft.Extensions.Logging.ILogger,int,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])
- call [rax]Microsoft.Extensions.Logging.LoggerExtensions:Log(Microsoft.Extensions.Logging.ILogger,int,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])
+ call rax
mov r15, gword ptr [rbx+0x28]
mov rdi, 0xD1FFAB1E ; System.Object[]
mov esi, 1
call CORINFO_HELP_NEWARR_1_OBJ
- mov r14, rax
+ mov r13, rax
mov rdi, gword ptr [rbx+0x10]
mov r11, 0xD1FFAB1E ; code for Microsoft.Extensions.Hosting.IHostEnvironment:get_ContentRootPath():System.String:this
call [r11]Microsoft.Extensions.Hosting.IHostEnvironment:get_ContentRootPath():System.String:this
- lea rdi, bword ptr [r14+0x10]
+ lea rdi, bword ptr [r13+0x10]
mov rsi, rax
call CORINFO_HELP_ASSIGN_REF
- mov gword ptr [rsp], r14
+ test r15, r15
+ je G_M28826_IG04
+ lea rdi, [rbp-0x70]
+ mov rdx, r13
+ mov rsi, 0xD1FFAB1E ; 'Content root path: {ContentRoot}'
+ mov rax, 0xD1FFAB1E ; code for Microsoft.Extensions.Logging.FormattedLogValues:.ctor(System.String,System.Object[]):this
+ call [rax]Microsoft.Extensions.Logging.FormattedLogValues:.ctor(System.String,System.Object[]):this
+ mov rdi, r15
+ mov rsi, r14
+ mov rdx, 0xD1FFAB1E ; token handle
+ mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_VIRTUAL_FUNC_PTR
+ call [rax]CORINFO_HELP_VIRTUAL_FUNC_PTR
+ ;; size=193 bbWeight=1 PerfScore 37.50
+G_M28826_IG11:
+ vmovdqu xmm0, xmmword ptr [rbp-0x70]
+ vmovdqu xmmword ptr [rbp-0xB8], xmm0
+ mov r9, qword ptr [rbp-0x60]
+ mov qword ptr [rbp-0xA8], r9
+ ;; size=24 bbWeight=1 PerfScore 6.00
+G_M28826_IG12:
+ mov r9, gword ptr [r12]
+ lea rdi, [rsp]
+ lea rsi, [rbp-0xB8]
+ mov rcx, gword ptr [rsi]
+ mov gword ptr [rsp], rcx
+ add rsi, 8
+ add rdi, 8
+ mov rcx, gword ptr [rsi]
+ mov gword ptr [rsp+0x08], rcx
+ add rsi, 8
+ add rdi, 8
+ mov rcx, gword ptr [rsi]
+ mov gword ptr [rsp+0x10], rcx
xor rdx, rdx
xor ecx, ecx
mov rdi, r15
mov esi, 2
xor r8, r8
- mov r9, 0xD1FFAB1E ; 'Content root path: {ContentRoot}'
- mov rax, 0xD1FFAB1E ; code for Microsoft.Extensions.Logging.LoggerExtensions:Log(Microsoft.Extensions.Logging.ILogger,int,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])
- call [rax]Microsoft.Extensions.Logging.LoggerExtensions:Log(Microsoft.Extensions.Logging.ILogger,int,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])
+ call rax
nop
- ;; size=249 bbWeight=1 PerfScore 41.25
-G_M28826_IG04:
- add rsp, 8
+ ;; size=72 bbWeight=1 PerfScore 17.50
+G_M28826_IG13:
+ add rsp, 168
pop rbx
+ pop r12
+ pop r13
pop r14
pop r15
pop rbp
ret
- ;; size=11 bbWeight=1 PerfScore 3.25
-G_M28826_IG05:
+ ;; size=18 bbWeight=1 PerfScore 4.25
+G_M28826_IG14:
mov rdi, 0xD1FFAB1E ; System.Array+EmptyArray`1[System.Object]
mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_GET_GCSTATIC_BASE
call [rax]CORINFO_HELP_GET_GCSTATIC_BASE
jmp G_M28826_IG03
;; size=27 bbWeight=0 PerfScore 0.00
+G_M28826_IG15:
+ mov rdi, 0xD1FFAB1E ; Microsoft.Extensions.Logging.LoggerExtensions
+ mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_GET_GCSTATIC_BASE
+ call [rax]CORINFO_HELP_GET_GCSTATIC_BASE
+ jmp G_M28826_IG08
+ ;; size=27 bbWeight=0 PerfScore 0.00
-; Total bytes of code 325, prolog size 12, PerfScore 56.50, instruction count 73, allocated bytes for code 325 (MethodHash=31b08f65) for method Microsoft.Extensions.Hosting.Internal.ConsoleLifetime:OnApplicationStarted():this (FullOpts)
+; Total bytes of code 839, prolog size 63, PerfScore 153.71, instruction count 177, allocated bytes for code 839 (MethodHash=31b08f65) for method Microsoft.Extensions.Hosting.Internal.ConsoleLifetime:OnApplicationStarted():this (FullOpts)
; ============================================================ 374 (162.61 % of base) - System.Linq.Parallel.SortQueryOperatorResults`2+ChildResultsRecipient[System.__Canon,System.Nullable`1[int]]:Receive[double](System.Linq.Parallel.PartitionedStream`2[System.__Canon,double]):this ; Assembly listing for method System.Linq.Parallel.SortQueryOperatorResults`2+ChildResultsRecipient[System.__Canon,System.Nullable`1[int]]:Receive[double](System.Linq.Parallel.PartitionedStream`2[System.__Canon,double]):this (FullOpts)
; Emitting BLENDED_CODE for X64 with AVX512 - Unix
; FullOpts code
; optimized code
; rbp based frame
-; partially interruptible
+; fully interruptible
; No PGO data
+; 0 inlinees with PGO data; 10 single block inlinees; 1 inlinees without PGO data
; Final local variable assignments
;
-; V00 this [V00,T01] ( 5, 5 ) ref -> r15 this class-hnd single-def <System.Linq.Parallel.SortQueryOperatorResults`2+ChildResultsRecipient[System.__Canon,System.Nullable`1[int]]>
-; V01 TypeCtx [V01,T00] ( 7, 5.40) long -> rbx single-def
-; V02 arg1 [V02,T05] ( 3, 3 ) ref -> r14 class-hnd single-def <System.Linq.Parallel.PartitionedStream`2[System.__Canon,double]>
-; V03 OutArgs [V03 ] ( 1, 1 ) struct (48) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <UNNAMED>
-; V04 tmp1 [V04,T02] ( 3, 6 ) ref -> r13 single-def "LDVIRTFTN this pointer"
+; V00 this [V00,T09] ( 4, 4 ) ref -> rdi this class-hnd single-def <System.Linq.Parallel.SortQueryOperatorResults`2+ChildResultsRecipient[System.__Canon,System.Nullable`1[int]]>
+; V01 TypeCtx [V01,T15] ( 3, 3 ) long -> rsi single-def
+; V02 arg1 [V02,T08] ( 4, 7 ) ref -> rbx class-hnd single-def <System.Linq.Parallel.PartitionedStream`2[System.__Canon,double]>
+;# V03 OutArgs [V03 ] ( 1, 1 ) struct ( 0) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
+; V04 tmp1 [V04,T03] ( 5, 16 ) ref -> r15 class-hnd exact single-def "LDVIRTFTN this pointer" <System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]>
;* V05 tmp2 [V05 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
;* V06 tmp3 [V06 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
-; V07 tmp4 [V07,T08] ( 2, 4 ) long -> rax "VirtualCall through function pointer"
-; V08 tmp5 [V08,T09] ( 2, 4 ) long -> r12 "argument with side effect"
-; V09 tmp6 [V09,T10] ( 2, 4 ) long -> rdx "argument with side effect"
-; V10 rat0 [V10,T06] ( 3, 4 ) long -> r12 "runtime lookup"
-; V11 rat1 [V11,T03] ( 3, 5.60) long -> r12 "fgMakeTemp is creating a new local variable"
-; V12 rat2 [V12,T07] ( 3, 4 ) long -> rdx "runtime lookup"
-; V13 rat3 [V13,T04] ( 3, 5.60) long -> rdx "fgMakeTemp is creating a new local variable"
+;* V07 tmp4 [V07 ] ( 0, 0 ) long -> zero-ref "VirtualCall through function pointer"
+; V08 tmp5 [V08,T24] ( 2, 4 ) int -> r13 "impAppendStmt"
+; V09 tmp6 [V09,T22] ( 2, 4 ) ref -> r12 class-hnd single-def "impAppendStmt" <System.Collections.Generic.IComparer`1[System.Nullable`1[int]]>
+; V10 tmp7 [V10,T06] ( 6, 12 ) ref -> [rbp-0x48] class-hnd exact spill-single-def "NewObj constructor temp" <System.Linq.Parallel.PartitionedStream`2[System.__Canon,System.Nullable`1[int]]>
+;* V11 tmp8 [V11 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
+; V12 tmp9 [V12,T07] ( 5, 11 ) ref -> r13 class-hnd exact single-def "Inline stloc first use temp" <System.Linq.Parallel.PartitionedStream`2[System.__Canon,System.Nullable`1[int]]>
+;* V13 tmp10 [V13,T32] ( 0, 0 ) int -> zero-ref "Inline stloc first use temp"
+; V14 tmp11 [V14,T00] ( 4, 32 ) ref -> [rbp-0x50] class-hnd exact spill-single-def "NewObj constructor temp" <System.Linq.Parallel.SortQueryOperatorEnumerator`3[System.__Canon,double,System.Nullable`1[int]]>
+;* V15 tmp12 [V15 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
+; V16 tmp13 [V16,T10] ( 3, 6 ) ref -> r14 class-hnd single-def "Inlining Arg" <System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon]>
+;* V17 tmp14 [V17 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
+;* V18 tmp15 [V18 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
+; V19 tmp16 [V19,T25] ( 2, 4 ) long -> rax "VirtualCall through function pointer"
+;* V20 tmp17 [V20 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
+; V21 tmp18 [V21,T23] ( 2, 4 ) ref -> rax class-hnd exact single-def "NewArr temp" <System.__Canon[]>
+; V22 tmp19 [V22,T26] ( 2, 4 ) ubyte -> [rbp-0x34] spill-single-def "Inlining Arg"
+; V23 tmp20 [V23,T04] ( 2, 16 ) ref -> rsi class-hnd "Inlining Arg" <System.__Canon>
+; V24 tmp21 [V24,T05] ( 2, 16 ) ref -> [rbp-0x58] class-hnd spill-single-def "Inlining Arg" <System.Func`2[System.__Canon,System.Nullable`1[int]]>
+; V25 tmp22 [V25,T27] ( 2, 4 ) long -> rdi "argument with side effect"
+; V26 tmp23 [V26,T02] ( 3, 24 ) ref -> rdi "arr expr"
+; V27 tmp24 [V27,T28] ( 2, 4 ) long -> rbx "argument with side effect"
+; V28 tmp25 [V28,T29] ( 2, 4 ) long -> rdx "argument with side effect"
+; V29 cse0 [V29,T17] ( 2, 4.25) long -> [rbp-0x40] spill-single-def hoist "CSE #01: moderate"
+; V30 rat0 [V30,T01] ( 7, 25 ) long -> r12 "Widened IV V13"
+; V31 rat1 [V31,T18] ( 3, 4 ) long -> rdi "runtime lookup"
+; V32 rat2 [V32,T11] ( 3, 5.60) long -> rdi "fgMakeTemp is creating a new local variable"
+; V33 rat3 [V33,T16] ( 3, 4.40) long -> rdi "Spilling to split statement for tree"
+; V34 rat4 [V34,T19] ( 3, 4 ) long -> rdi "runtime lookup"
+; V35 rat5 [V35,T12] ( 3, 5.60) long -> rdx "fgMakeTemp is creating a new local variable"
+; V36 rat6 [V36,T31] ( 3, 1 ) long -> rax "runtime lookup"
+; V37 rat7 [V37,T30] ( 3, 1.40) long -> rax "fgMakeTemp is creating a new local variable"
+; V38 rat8 [V38,T20] ( 3, 4 ) long -> rbx "runtime lookup"
+; V39 rat9 [V39,T13] ( 3, 5.60) long -> rbx "fgMakeTemp is creating a new local variable"
+; V40 rat10 [V40,T21] ( 3, 4 ) long -> rdx "runtime lookup"
+; V41 rat11 [V41,T14] ( 3, 5.60) long -> rdx "fgMakeTemp is creating a new local variable"
;
; Lcl frame size = 56
G_M16955_IG01:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 56
lea rbp, [rsp+0x60]
mov qword ptr [rbp-0x30], rsi
- mov r15, rdi
- mov rbx, rsi
- mov r14, rdx
- ;; size=32 bbWeight=1 PerfScore 8.50
+ mov rbx, rdx
+ ;; size=26 bbWeight=1 PerfScore 8.00
G_M16955_IG02:
- mov r13, gword ptr [r15+0x10]
- mov rdi, qword ptr [rbx+0x18]
- mov r12, qword ptr [rdi+0x10]
- test r12, r12
- je SHORT G_M16955_IG06
- ;; size=17 bbWeight=1 PerfScore 7.25
+ mov r15, gword ptr [rdi+0x10]
+ cmp byte ptr [r15], r15b
+ mov r14, gword ptr [rdi+0x08]
+ mov rdi, gword ptr [rbx+0x08]
+ mov r13d, dword ptr [rdi+0x08]
+ mov r12, gword ptr [r15+0x50]
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[double](System.Linq.Parallel.PartitionedStream`2[System.__Canon,double],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
+ mov rdi, qword ptr [rdi+0x18]
+ mov rdi, qword ptr [rdi+0x10]
+ test rdi, rdi
+ je G_M16955_IG13
+ ;; size=50 bbWeight=1 PerfScore 18.50
G_M16955_IG03:
- mov rdi, qword ptr [rbx+0x18]
- mov rdx, qword ptr [rdi+0x18]
+ call CORINFO_HELP_NEWSFAST
+ mov gword ptr [rbp-0x48], rax
+ movzx rcx, byte ptr [r15+0x39]
+ mov dword ptr [rbp-0x34], ecx
+ mov rdi, qword ptr [rax]
+ mov rsi, qword ptr [rdi+0x30]
+ mov rsi, qword ptr [rsi]
+ mov rdx, qword ptr [rsi+0x18]
test rdx, rdx
- je G_M16955_IG07
- ;; size=17 bbWeight=1 PerfScore 5.25
+ je G_M16955_IG14
+ ;; size=40 bbWeight=1 PerfScore 14.25
G_M16955_IG04:
+ mov rdi, rdx
+ ;; size=3 bbWeight=0.80 PerfScore 0.20
+G_M16955_IG05:
+ mov esi, r13d
+ call CORINFO_HELP_NEWARR_1_OBJ
+ mov r13, gword ptr [rbp-0x48]
+ lea rdi, bword ptr [r13+0x08]
+ mov rsi, rax
+ call CORINFO_HELP_ASSIGN_REF
+ lea rdi, bword ptr [r13+0x10]
mov rsi, r12
- mov rdi, r13
+ call CORINFO_HELP_ASSIGN_REF
+ mov r12d, dword ptr [rbp-0x34]
+ mov byte ptr [r13+0x18], r12b
+ xor r12d, r12d
+ mov rdi, gword ptr [r13+0x08]
+ cmp dword ptr [rdi+0x08], 0
+ jle G_M16955_IG09
+ ;; size=61 bbWeight=1 PerfScore 14.00
+G_M16955_IG06:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[double](System.Linq.Parallel.PartitionedStream`2[System.__Canon,double],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
+ mov rdi, qword ptr [rdi+0x18]
+ mov rax, qword ptr [rdi+0x18]
+ test rax, rax
+ je G_M16955_IG15
+ ;; size=27 bbWeight=0.25 PerfScore 1.38
+G_M16955_IG07:
+ mov qword ptr [rbp-0x40], rax
+ ;; size=4 bbWeight=0.25 PerfScore 0.25
+G_M16955_IG08:
+ mov rdi, rax
+ call CORINFO_HELP_NEWSFAST
+ mov gword ptr [rbp-0x50], rax
+ mov rdi, gword ptr [rbx+0x08]
+ cmp r12d, dword ptr [rdi+0x08]
+ jae G_M16955_IG18
+ mov rsi, gword ptr [rdi+8*r12+0x10]
+ mov rcx, gword ptr [r15+0x48]
+ mov gword ptr [rbp-0x58], rcx
+ lea rdi, bword ptr [rax+0x08]
+ call CORINFO_HELP_ASSIGN_REF
+ mov rax, gword ptr [rbp-0x50]
+ lea rdi, bword ptr [rax+0x10]
+ mov rsi, gword ptr [rbp-0x58]
+ call CORINFO_HELP_ASSIGN_REF
+ mov rdi, gword ptr [r13+0x08]
+ mov rsi, r12
+ mov rdx, gword ptr [rbp-0x50]
+ mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_ARRADDR_ST
+ call [rax]CORINFO_HELP_ARRADDR_ST
+ inc r12d
+ mov rdi, gword ptr [r13+0x08]
+ cmp dword ptr [rdi+0x08], r12d
+ mov rax, qword ptr [rbp-0x40]
+ jg SHORT G_M16955_IG08
+ ;; size=105 bbWeight=4 PerfScore 128.00
+G_M16955_IG09:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[double](System.Linq.Parallel.PartitionedStream`2[System.__Canon,double],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
+ mov rdi, qword ptr [rdi+0x18]
+ mov rbx, qword ptr [rdi+0x20]
+ test rbx, rbx
+ je G_M16955_IG16
+ ;; size=27 bbWeight=1 PerfScore 5.50
+G_M16955_IG10:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[double](System.Linq.Parallel.PartitionedStream`2[System.__Canon,double],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
+ mov rdi, qword ptr [rdi+0x18]
+ mov rdx, qword ptr [rdi+0x28]
+ test rdx, rdx
+ je G_M16955_IG17
+ ;; size=27 bbWeight=1 PerfScore 5.50
+G_M16955_IG11:
+ mov rsi, rbx
+ mov rdi, r14
mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_VIRTUAL_FUNC_PTR
call [rax]CORINFO_HELP_VIRTUAL_FUNC_PTR
- lea rdx, bword ptr [r15+0x18]
- lea rdi, [rsp]
- mov rsi, rdx
- mov rcx, gword ptr [rsi]
- mov gword ptr [rsp], rcx
- add rsi, 8
- add rdi, 8
- mov rcx, gword ptr [rsi]
- mov gword ptr [rsp+0x08], rcx
- add rsi, 8
- add rdi, 8
- mov ecx, 4
- rep movsq
- mov rdx, gword ptr [r15+0x08]
- mov rdi, r13
- mov rsi, r14
- xor ecx, ecx
- call rax
- nop
- ;; size=83 bbWeight=1 PerfScore 43.25
-G_M16955_IG05:
+ mov rdi, r14
+ mov rsi, r13
+ ;; size=24 bbWeight=1 PerfScore 4.25
+G_M16955_IG12:
add rsp, 56
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
- ret
- ;; size=15 bbWeight=1 PerfScore 4.25
-G_M16955_IG06:
- mov rdi, rbx
+ tail.jmp rax
+ ;; size=17 bbWeight=1 PerfScore 5.25
+G_M16955_IG13:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[double](System.Linq.Parallel.PartitionedStream`2[System.__Canon,double],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
mov rsi, 0xD1FFAB1E ; global ptr
mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_METHOD
call [rax]CORINFO_HELP_RUNTIMEHANDLE_METHOD
- mov r12, rax
+ mov rdi, rax
jmp G_M16955_IG03
- ;; size=33 bbWeight=0.20 PerfScore 1.20
-G_M16955_IG07:
- mov rdi, rbx
+ ;; size=40 bbWeight=0.20 PerfScore 1.20
+G_M16955_IG14:
+ mov rsi, 0xD1FFAB1E ; global ptr
+ mov rdx, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_CLASS
+ call [rdx]CORINFO_HELP_RUNTIMEHANDLE_CLASS
+ mov rdi, rax
+ jmp G_M16955_IG05
+ ;; size=30 bbWeight=0.20 PerfScore 1.15
+G_M16955_IG15:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[double](System.Linq.Parallel.PartitionedStream`2[System.__Canon,double],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
+ mov rsi, 0xD1FFAB1E ; global ptr
+ mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_METHOD
+ call [rax]CORINFO_HELP_RUNTIMEHANDLE_METHOD
+ jmp G_M16955_IG07
+ ;; size=37 bbWeight=0.05 PerfScore 0.29
+G_M16955_IG16:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[double](System.Linq.Parallel.PartitionedStream`2[System.__Canon,double],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
+ mov rsi, 0xD1FFAB1E ; global ptr
+ mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_METHOD
+ call [rax]CORINFO_HELP_RUNTIMEHANDLE_METHOD
+ mov rbx, rax
+ jmp G_M16955_IG10
+ ;; size=40 bbWeight=0.20 PerfScore 1.20
+G_M16955_IG17:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[double](System.Linq.Parallel.PartitionedStream`2[System.__Canon,double],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
mov rsi, 0xD1FFAB1E ; global ptr
mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_METHOD
call [rax]CORINFO_HELP_RUNTIMEHANDLE_METHOD
mov rdx, rax
- jmp G_M16955_IG04
- ;; size=33 bbWeight=0.20 PerfScore 1.20
+ jmp G_M16955_IG11
+ ;; size=40 bbWeight=0.20 PerfScore 1.20
+G_M16955_IG18:
+ call CORINFO_HELP_RNGCHKFAIL
+ int3
+ ;; size=6 bbWeight=0 PerfScore 0.00
-; Total bytes of code 230, prolog size 23, PerfScore 70.90, instruction count 64, allocated bytes for code 230 (MethodHash=04c7bdc4) for method System.Linq.Parallel.SortQueryOperatorResults`2+ChildResultsRecipient[System.__Canon,System.Nullable`1[int]]:Receive[double](System.Linq.Parallel.PartitionedStream`2[System.__Canon,double]):this (FullOpts)
+; Total bytes of code 604, prolog size 26, PerfScore 210.11, instruction count 132, allocated bytes for code 604 (MethodHash=04c7bdc4) for method System.Linq.Parallel.SortQueryOperatorResults`2+ChildResultsRecipient[System.__Canon,System.Nullable`1[int]]:Receive[double](System.Linq.Parallel.PartitionedStream`2[System.__Canon,double]):this (FullOpts)
; ============================================================ 374 (162.61 % of base) - System.Linq.Parallel.SortQueryOperatorResults`2+ChildResultsRecipient[System.__Canon,System.Nullable`1[int]]:Receive[int](System.Linq.Parallel.PartitionedStream`2[System.__Canon,int]):this ; Assembly listing for method System.Linq.Parallel.SortQueryOperatorResults`2+ChildResultsRecipient[System.__Canon,System.Nullable`1[int]]:Receive[int](System.Linq.Parallel.PartitionedStream`2[System.__Canon,int]):this (FullOpts)
; Emitting BLENDED_CODE for X64 with AVX512 - Unix
; FullOpts code
; optimized code
; rbp based frame
-; partially interruptible
+; fully interruptible
; No PGO data
+; 0 inlinees with PGO data; 10 single block inlinees; 1 inlinees without PGO data
; Final local variable assignments
;
-; V00 this [V00,T01] ( 5, 5 ) ref -> r15 this class-hnd single-def <System.Linq.Parallel.SortQueryOperatorResults`2+ChildResultsRecipient[System.__Canon,System.Nullable`1[int]]>
-; V01 TypeCtx [V01,T00] ( 7, 5.40) long -> rbx single-def
-; V02 arg1 [V02,T05] ( 3, 3 ) ref -> r14 class-hnd single-def <System.Linq.Parallel.PartitionedStream`2[System.__Canon,int]>
-; V03 OutArgs [V03 ] ( 1, 1 ) struct (48) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <UNNAMED>
-; V04 tmp1 [V04,T02] ( 3, 6 ) ref -> r13 single-def "LDVIRTFTN this pointer"
+; V00 this [V00,T09] ( 4, 4 ) ref -> rdi this class-hnd single-def <System.Linq.Parallel.SortQueryOperatorResults`2+ChildResultsRecipient[System.__Canon,System.Nullable`1[int]]>
+; V01 TypeCtx [V01,T15] ( 3, 3 ) long -> rsi single-def
+; V02 arg1 [V02,T08] ( 4, 7 ) ref -> rbx class-hnd single-def <System.Linq.Parallel.PartitionedStream`2[System.__Canon,int]>
+;# V03 OutArgs [V03 ] ( 1, 1 ) struct ( 0) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
+; V04 tmp1 [V04,T03] ( 5, 16 ) ref -> r15 class-hnd exact single-def "LDVIRTFTN this pointer" <System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]>
;* V05 tmp2 [V05 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
;* V06 tmp3 [V06 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
-; V07 tmp4 [V07,T08] ( 2, 4 ) long -> rax "VirtualCall through function pointer"
-; V08 tmp5 [V08,T09] ( 2, 4 ) long -> r12 "argument with side effect"
-; V09 tmp6 [V09,T10] ( 2, 4 ) long -> rdx "argument with side effect"
-; V10 rat0 [V10,T06] ( 3, 4 ) long -> r12 "runtime lookup"
-; V11 rat1 [V11,T03] ( 3, 5.60) long -> r12 "fgMakeTemp is creating a new local variable"
-; V12 rat2 [V12,T07] ( 3, 4 ) long -> rdx "runtime lookup"
-; V13 rat3 [V13,T04] ( 3, 5.60) long -> rdx "fgMakeTemp is creating a new local variable"
+;* V07 tmp4 [V07 ] ( 0, 0 ) long -> zero-ref "VirtualCall through function pointer"
+; V08 tmp5 [V08,T24] ( 2, 4 ) int -> r13 "impAppendStmt"
+; V09 tmp6 [V09,T22] ( 2, 4 ) ref -> r12 class-hnd single-def "impAppendStmt" <System.Collections.Generic.IComparer`1[System.Nullable`1[int]]>
+; V10 tmp7 [V10,T06] ( 6, 12 ) ref -> [rbp-0x48] class-hnd exact spill-single-def "NewObj constructor temp" <System.Linq.Parallel.PartitionedStream`2[System.__Canon,System.Nullable`1[int]]>
+;* V11 tmp8 [V11 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
+; V12 tmp9 [V12,T07] ( 5, 11 ) ref -> r13 class-hnd exact single-def "Inline stloc first use temp" <System.Linq.Parallel.PartitionedStream`2[System.__Canon,System.Nullable`1[int]]>
+;* V13 tmp10 [V13,T32] ( 0, 0 ) int -> zero-ref "Inline stloc first use temp"
+; V14 tmp11 [V14,T00] ( 4, 32 ) ref -> [rbp-0x50] class-hnd exact spill-single-def "NewObj constructor temp" <System.Linq.Parallel.SortQueryOperatorEnumerator`3[System.__Canon,int,System.Nullable`1[int]]>
+;* V15 tmp12 [V15 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
+; V16 tmp13 [V16,T10] ( 3, 6 ) ref -> r14 class-hnd single-def "Inlining Arg" <System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon]>
+;* V17 tmp14 [V17 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
+;* V18 tmp15 [V18 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
+; V19 tmp16 [V19,T25] ( 2, 4 ) long -> rax "VirtualCall through function pointer"
+;* V20 tmp17 [V20 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
+; V21 tmp18 [V21,T23] ( 2, 4 ) ref -> rax class-hnd exact single-def "NewArr temp" <System.__Canon[]>
+; V22 tmp19 [V22,T26] ( 2, 4 ) ubyte -> [rbp-0x34] spill-single-def "Inlining Arg"
+; V23 tmp20 [V23,T04] ( 2, 16 ) ref -> rsi class-hnd "Inlining Arg" <System.__Canon>
+; V24 tmp21 [V24,T05] ( 2, 16 ) ref -> [rbp-0x58] class-hnd spill-single-def "Inlining Arg" <System.Func`2[System.__Canon,System.Nullable`1[int]]>
+; V25 tmp22 [V25,T27] ( 2, 4 ) long -> rdi "argument with side effect"
+; V26 tmp23 [V26,T02] ( 3, 24 ) ref -> rdi "arr expr"
+; V27 tmp24 [V27,T28] ( 2, 4 ) long -> rbx "argument with side effect"
+; V28 tmp25 [V28,T29] ( 2, 4 ) long -> rdx "argument with side effect"
+; V29 cse0 [V29,T17] ( 2, 4.25) long -> [rbp-0x40] spill-single-def hoist "CSE #01: moderate"
+; V30 rat0 [V30,T01] ( 7, 25 ) long -> r12 "Widened IV V13"
+; V31 rat1 [V31,T18] ( 3, 4 ) long -> rdi "runtime lookup"
+; V32 rat2 [V32,T11] ( 3, 5.60) long -> rdi "fgMakeTemp is creating a new local variable"
+; V33 rat3 [V33,T16] ( 3, 4.40) long -> rdi "Spilling to split statement for tree"
+; V34 rat4 [V34,T19] ( 3, 4 ) long -> rdi "runtime lookup"
+; V35 rat5 [V35,T12] ( 3, 5.60) long -> rdx "fgMakeTemp is creating a new local variable"
+; V36 rat6 [V36,T31] ( 3, 1 ) long -> rax "runtime lookup"
+; V37 rat7 [V37,T30] ( 3, 1.40) long -> rax "fgMakeTemp is creating a new local variable"
+; V38 rat8 [V38,T20] ( 3, 4 ) long -> rbx "runtime lookup"
+; V39 rat9 [V39,T13] ( 3, 5.60) long -> rbx "fgMakeTemp is creating a new local variable"
+; V40 rat10 [V40,T21] ( 3, 4 ) long -> rdx "runtime lookup"
+; V41 rat11 [V41,T14] ( 3, 5.60) long -> rdx "fgMakeTemp is creating a new local variable"
;
; Lcl frame size = 56
G_M17083_IG01:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 56
lea rbp, [rsp+0x60]
mov qword ptr [rbp-0x30], rsi
- mov r15, rdi
- mov rbx, rsi
- mov r14, rdx
- ;; size=32 bbWeight=1 PerfScore 8.50
+ mov rbx, rdx
+ ;; size=26 bbWeight=1 PerfScore 8.00
G_M17083_IG02:
- mov r13, gword ptr [r15+0x10]
- mov rdi, qword ptr [rbx+0x18]
- mov r12, qword ptr [rdi+0x10]
- test r12, r12
- je SHORT G_M17083_IG06
- ;; size=17 bbWeight=1 PerfScore 7.25
+ mov r15, gword ptr [rdi+0x10]
+ cmp byte ptr [r15], r15b
+ mov r14, gword ptr [rdi+0x08]
+ mov rdi, gword ptr [rbx+0x08]
+ mov r13d, dword ptr [rdi+0x08]
+ mov r12, gword ptr [r15+0x50]
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[int](System.Linq.Parallel.PartitionedStream`2[System.__Canon,int],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
+ mov rdi, qword ptr [rdi+0x18]
+ mov rdi, qword ptr [rdi+0x10]
+ test rdi, rdi
+ je G_M17083_IG13
+ ;; size=50 bbWeight=1 PerfScore 18.50
G_M17083_IG03:
- mov rdi, qword ptr [rbx+0x18]
- mov rdx, qword ptr [rdi+0x18]
+ call CORINFO_HELP_NEWSFAST
+ mov gword ptr [rbp-0x48], rax
+ movzx rcx, byte ptr [r15+0x39]
+ mov dword ptr [rbp-0x34], ecx
+ mov rdi, qword ptr [rax]
+ mov rsi, qword ptr [rdi+0x30]
+ mov rsi, qword ptr [rsi]
+ mov rdx, qword ptr [rsi+0x18]
test rdx, rdx
- je G_M17083_IG07
- ;; size=17 bbWeight=1 PerfScore 5.25
+ je G_M17083_IG14
+ ;; size=40 bbWeight=1 PerfScore 14.25
G_M17083_IG04:
+ mov rdi, rdx
+ ;; size=3 bbWeight=0.80 PerfScore 0.20
+G_M17083_IG05:
+ mov esi, r13d
+ call CORINFO_HELP_NEWARR_1_OBJ
+ mov r13, gword ptr [rbp-0x48]
+ lea rdi, bword ptr [r13+0x08]
+ mov rsi, rax
+ call CORINFO_HELP_ASSIGN_REF
+ lea rdi, bword ptr [r13+0x10]
mov rsi, r12
- mov rdi, r13
+ call CORINFO_HELP_ASSIGN_REF
+ mov r12d, dword ptr [rbp-0x34]
+ mov byte ptr [r13+0x18], r12b
+ xor r12d, r12d
+ mov rdi, gword ptr [r13+0x08]
+ cmp dword ptr [rdi+0x08], 0
+ jle G_M17083_IG09
+ ;; size=61 bbWeight=1 PerfScore 14.00
+G_M17083_IG06:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[int](System.Linq.Parallel.PartitionedStream`2[System.__Canon,int],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
+ mov rdi, qword ptr [rdi+0x18]
+ mov rax, qword ptr [rdi+0x18]
+ test rax, rax
+ je G_M17083_IG15
+ ;; size=27 bbWeight=0.25 PerfScore 1.38
+G_M17083_IG07:
+ mov qword ptr [rbp-0x40], rax
+ ;; size=4 bbWeight=0.25 PerfScore 0.25
+G_M17083_IG08:
+ mov rdi, rax
+ call CORINFO_HELP_NEWSFAST
+ mov gword ptr [rbp-0x50], rax
+ mov rdi, gword ptr [rbx+0x08]
+ cmp r12d, dword ptr [rdi+0x08]
+ jae G_M17083_IG18
+ mov rsi, gword ptr [rdi+8*r12+0x10]
+ mov rcx, gword ptr [r15+0x48]
+ mov gword ptr [rbp-0x58], rcx
+ lea rdi, bword ptr [rax+0x08]
+ call CORINFO_HELP_ASSIGN_REF
+ mov rax, gword ptr [rbp-0x50]
+ lea rdi, bword ptr [rax+0x10]
+ mov rsi, gword ptr [rbp-0x58]
+ call CORINFO_HELP_ASSIGN_REF
+ mov rdi, gword ptr [r13+0x08]
+ mov rsi, r12
+ mov rdx, gword ptr [rbp-0x50]
+ mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_ARRADDR_ST
+ call [rax]CORINFO_HELP_ARRADDR_ST
+ inc r12d
+ mov rdi, gword ptr [r13+0x08]
+ cmp dword ptr [rdi+0x08], r12d
+ mov rax, qword ptr [rbp-0x40]
+ jg SHORT G_M17083_IG08
+ ;; size=105 bbWeight=4 PerfScore 128.00
+G_M17083_IG09:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[int](System.Linq.Parallel.PartitionedStream`2[System.__Canon,int],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
+ mov rdi, qword ptr [rdi+0x18]
+ mov rbx, qword ptr [rdi+0x20]
+ test rbx, rbx
+ je G_M17083_IG16
+ ;; size=27 bbWeight=1 PerfScore 5.50
+G_M17083_IG10:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[int](System.Linq.Parallel.PartitionedStream`2[System.__Canon,int],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
+ mov rdi, qword ptr [rdi+0x18]
+ mov rdx, qword ptr [rdi+0x28]
+ test rdx, rdx
+ je G_M17083_IG17
+ ;; size=27 bbWeight=1 PerfScore 5.50
+G_M17083_IG11:
+ mov rsi, rbx
+ mov rdi, r14
mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_VIRTUAL_FUNC_PTR
call [rax]CORINFO_HELP_VIRTUAL_FUNC_PTR
- lea rdx, bword ptr [r15+0x18]
- lea rdi, [rsp]
- mov rsi, rdx
- mov rcx, gword ptr [rsi]
- mov gword ptr [rsp], rcx
- add rsi, 8
- add rdi, 8
- mov rcx, gword ptr [rsi]
- mov gword ptr [rsp+0x08], rcx
- add rsi, 8
- add rdi, 8
- mov ecx, 4
- rep movsq
- mov rdx, gword ptr [r15+0x08]
- mov rdi, r13
- mov rsi, r14
- xor ecx, ecx
- call rax
- nop
- ;; size=83 bbWeight=1 PerfScore 43.25
-G_M17083_IG05:
+ mov rdi, r14
+ mov rsi, r13
+ ;; size=24 bbWeight=1 PerfScore 4.25
+G_M17083_IG12:
add rsp, 56
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
- ret
- ;; size=15 bbWeight=1 PerfScore 4.25
-G_M17083_IG06:
- mov rdi, rbx
+ tail.jmp rax
+ ;; size=17 bbWeight=1 PerfScore 5.25
+G_M17083_IG13:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[int](System.Linq.Parallel.PartitionedStream`2[System.__Canon,int],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
mov rsi, 0xD1FFAB1E ; global ptr
mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_METHOD
call [rax]CORINFO_HELP_RUNTIMEHANDLE_METHOD
- mov r12, rax
+ mov rdi, rax
jmp G_M17083_IG03
- ;; size=33 bbWeight=0.20 PerfScore 1.20
-G_M17083_IG07:
- mov rdi, rbx
+ ;; size=40 bbWeight=0.20 PerfScore 1.20
+G_M17083_IG14:
+ mov rsi, 0xD1FFAB1E ; global ptr
+ mov rdx, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_CLASS
+ call [rdx]CORINFO_HELP_RUNTIMEHANDLE_CLASS
+ mov rdi, rax
+ jmp G_M17083_IG05
+ ;; size=30 bbWeight=0.20 PerfScore 1.15
+G_M17083_IG15:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[int](System.Linq.Parallel.PartitionedStream`2[System.__Canon,int],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
+ mov rsi, 0xD1FFAB1E ; global ptr
+ mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_METHOD
+ call [rax]CORINFO_HELP_RUNTIMEHANDLE_METHOD
+ jmp G_M17083_IG07
+ ;; size=37 bbWeight=0.05 PerfScore 0.29
+G_M17083_IG16:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[int](System.Linq.Parallel.PartitionedStream`2[System.__Canon,int],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
+ mov rsi, 0xD1FFAB1E ; global ptr
+ mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_METHOD
+ call [rax]CORINFO_HELP_RUNTIMEHANDLE_METHOD
+ mov rbx, rax
+ jmp G_M17083_IG10
+ ;; size=40 bbWeight=0.20 PerfScore 1.20
+G_M17083_IG17:
+ mov rdi, 0xD1FFAB1E ; System.Linq.Parallel.SortQueryOperator`2[System.__Canon,System.Nullable`1[int]]:WrapPartitionedStream[int](System.Linq.Parallel.PartitionedStream`2[System.__Canon,int],System.Linq.Parallel.IPartitionedStreamRecipient`1[System.__Canon],ubyte,System.Linq.Parallel.QuerySettings):this
mov rsi, 0xD1FFAB1E ; global ptr
mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_METHOD
call [rax]CORINFO_HELP_RUNTIMEHANDLE_METHOD
mov rdx, rax
- jmp G_M17083_IG04
- ;; size=33 bbWeight=0.20 PerfScore 1.20
+ jmp G_M17083_IG11
+ ;; size=40 bbWeight=0.20 PerfScore 1.20
+G_M17083_IG18:
+ call CORINFO_HELP_RNGCHKFAIL
+ int3
+ ;; size=6 bbWeight=0 PerfScore 0.00
-; Total bytes of code 230, prolog size 23, PerfScore 70.90, instruction count 64, allocated bytes for code 230 (MethodHash=fd02bd44) for method System.Linq.Parallel.SortQueryOperatorResults`2+ChildResultsRecipient[System.__Canon,System.Nullable`1[int]]:Receive[int](System.Linq.Parallel.PartitionedStream`2[System.__Canon,int]):this (FullOpts)
+; Total bytes of code 604, prolog size 26, PerfScore 210.11, instruction count 132, allocated bytes for code 604 (MethodHash=fd02bd44) for method System.Linq.Parallel.SortQueryOperatorResults`2+ChildResultsRecipient[System.__Canon,System.Nullable`1[int]]:Receive[int](System.Linq.Parallel.PartitionedStream`2[System.__Canon,int]):this (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/5cf95119e5a658dbe6e4234590114ddd |
Top method improvements-55 (-18.09 % of base) - System.Text.Json.Nodes.JsonValueOfElement:GetValue[System.__Canon]():System.__Canon:this ; Assembly listing for method System.Text.Json.Nodes.JsonValueOfElement:GetValue[System.__Canon]():System.__Canon:this (FullOpts)
; Emitting BLENDED_CODE for X64 with AVX512 - Unix
; FullOpts code
; optimized code
; rbp based frame
; partially interruptible
; No PGO data
; 0 inlinees with PGO data; 8 single block inlinees; 4 inlinees without PGO data
; Final local variable assignments
;
-; V00 this [V00,T01] ( 5, 4.50) ref -> r15 this class-hnd single-def <System.Text.Json.Nodes.JsonValueOfElement>
-; V01 TypeCtx [V01,T00] ( 6, 4.70) long -> rbx single-def
+; V00 this [V00,T00] ( 5, 4.50) ref -> rbx this class-hnd single-def <System.Text.Json.Nodes.JsonValueOfElement>
+; V01 TypeCtx [V01,T01] ( 4, 3.50) long -> r15 single-def
; V02 loc0 [V02 ] ( 2, 2 ) ref -> [rbp-0x20] do-not-enreg[X] must-init addr-exposed ld-addr-op class-hnd <System.__Canon>
;# V03 OutArgs [V03 ] ( 1, 1 ) struct ( 0) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
;* V04 tmp1 [V04 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
-; V05 tmp2 [V05,T07] ( 2, 4 ) long -> rax "VirtualCall through function pointer"
-; V06 tmp3 [V06,T09] ( 3, 3 ) byref -> r15 single-def "Inlining Arg"
-; V07 tmp4 [V07,T16] ( 3, 1.50) ubyte -> rdi "Inline return value spill temp"
-; V08 tmp5 [V08,T04] ( 4, 4 ) ref -> rdi class-hnd exact single-def "dup spill" <System.Text.Json.JsonDocument>
+;* V05 tmp2 [V05 ] ( 0, 0 ) long -> zero-ref "VirtualCall through function pointer"
+; V06 tmp3 [V06,T05] ( 3, 3 ) byref -> rbx single-def "Inlining Arg"
+; V07 tmp4 [V07,T12] ( 3, 1.50) ubyte -> rdi "Inline return value spill temp"
+; V08 tmp5 [V08,T03] ( 4, 4 ) ref -> rdi class-hnd exact single-def "dup spill" <System.Text.Json.JsonDocument>
;* V09 tmp6 [V09 ] ( 0, 0 ) ref -> zero-ref single-def
-; V10 tmp7 [V10,T12] ( 2, 2 ) int -> rax "Inlining Arg"
+; V10 tmp7 [V10,T08] ( 2, 2 ) int -> rax "Inlining Arg"
;* V11 tmp8 [V11 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
;* V12 tmp9 [V12 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
;* V13 tmp10 [V13 ] ( 0, 0 ) struct (16) zero-ref "spilled call-like call argument" <System.Span`1[ubyte]>
;* V14 tmp11 [V14 ] ( 0, 0 ) struct (16) zero-ref "spilled call-like call argument" <System.ReadOnlySpan`1[ubyte]>
;* V15 tmp12 [V15 ] ( 0, 0 ) struct (16) zero-ref "Inline return value spill temp" <System.Span`1[ubyte]>
-; V16 tmp13 [V16,T05] ( 4, 4 ) ref -> rdi class-hnd single-def "Inlining Arg" <ubyte[]>
-; V17 tmp14 [V17,T03] ( 5, 5 ) int -> rax "Inlining Arg"
+; V16 tmp13 [V16,T04] ( 4, 4 ) ref -> rdi class-hnd single-def "Inlining Arg" <ubyte[]>
+; V17 tmp14 [V17,T02] ( 5, 5 ) int -> rax "Inlining Arg"
;* V18 tmp15 [V18 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "NewObj constructor temp" <System.Span`1[ubyte]>
;* V19 tmp16 [V19 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inline ldloca(s) first use temp" <System.Span`1[ubyte]>
-; V20 tmp17 [V20,T10] ( 2, 2 ) byref -> rdi single-def "Inlining Arg"
-; V21 tmp18 [V21,T13] ( 2, 2 ) int -> rcx "Inlining Arg"
+; V20 tmp17 [V20,T06] ( 2, 2 ) byref -> rdi single-def "Inlining Arg"
+; V21 tmp18 [V21,T09] ( 2, 2 ) int -> rcx "Inlining Arg"
;* V22 tmp19 [V22 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inlining Arg" <System.Span`1[ubyte]>
;* V23 tmp20 [V23 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "NewObj constructor temp" <System.ReadOnlySpan`1[ubyte]>
;* V24 tmp21 [V24 ] ( 0, 0 ) byref -> zero-ref single-def "Inlining Arg"
;* V25 tmp22 [V25 ] ( 0, 0 ) int -> zero-ref "Inlining Arg"
;* V26 tmp23 [V26 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inlining Arg" <System.ReadOnlySpan`1[ubyte]>
;* V27 tmp24 [V27 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inlining Arg" <System.ReadOnlySpan`1[ubyte]>
;* V28 tmp25 [V28 ] ( 0, 0 ) byref -> zero-ref "field V13._reference (fldOffset=0x0)" P-INDEP
;* V29 tmp26 [V29 ] ( 0, 0 ) int -> zero-ref "field V13._length (fldOffset=0x8)" P-INDEP
;* V30 tmp27 [V30 ] ( 0, 0 ) byref -> zero-ref "field V14._reference (fldOffset=0x0)" P-INDEP
;* V31 tmp28 [V31 ] ( 0, 0 ) int -> zero-ref "field V14._length (fldOffset=0x8)" P-INDEP
-; V32 tmp29 [V32,T15] ( 3, 1.50) byref -> rdi "field V15._reference (fldOffset=0x0)" P-INDEP
-; V33 tmp30 [V33,T17] ( 3, 1.50) int -> rcx "field V15._length (fldOffset=0x8)" P-INDEP
-; V34 tmp31 [V34,T19] ( 2, 1 ) byref -> rdi single-def "field V18._reference (fldOffset=0x0)" P-INDEP
-; V35 tmp32 [V35,T20] ( 2, 1 ) int -> rcx "field V18._length (fldOffset=0x8)" P-INDEP
+; V32 tmp29 [V32,T11] ( 3, 1.50) byref -> rdi "field V15._reference (fldOffset=0x0)" P-INDEP
+; V33 tmp30 [V33,T13] ( 3, 1.50) int -> rcx "field V15._length (fldOffset=0x8)" P-INDEP
+; V34 tmp31 [V34,T15] ( 2, 1 ) byref -> rdi single-def "field V18._reference (fldOffset=0x0)" P-INDEP
+; V35 tmp32 [V35,T16] ( 2, 1 ) int -> rcx "field V18._length (fldOffset=0x8)" P-INDEP
;* V36 tmp33 [V36 ] ( 0, 0 ) byref -> zero-ref single-def "field V19._reference (fldOffset=0x0)" P-INDEP
;* V37 tmp34 [V37 ] ( 0, 0 ) int -> zero-ref "field V19._length (fldOffset=0x8)" P-INDEP
;* V38 tmp35 [V38 ] ( 0, 0 ) byref -> zero-ref single-def "field V22._reference (fldOffset=0x0)" P-INDEP
;* V39 tmp36 [V39 ] ( 0, 0 ) int -> zero-ref "field V22._length (fldOffset=0x8)" P-INDEP
;* V40 tmp37 [V40 ] ( 0, 0 ) byref -> zero-ref single-def "field V23._reference (fldOffset=0x0)" P-INDEP
;* V41 tmp38 [V41 ] ( 0, 0 ) int -> zero-ref "field V23._length (fldOffset=0x8)" P-INDEP
;* V42 tmp39 [V42 ] ( 0, 0 ) byref -> zero-ref single-def "field V26._reference (fldOffset=0x0)" P-INDEP
;* V43 tmp40 [V43 ] ( 0, 0 ) int -> zero-ref "field V26._length (fldOffset=0x8)" P-INDEP
;* V44 tmp41 [V44 ] ( 0, 0 ) byref -> zero-ref single-def "field V27._reference (fldOffset=0x0)" P-INDEP
;* V45 tmp42 [V45 ] ( 0, 0 ) int -> zero-ref "field V27._length (fldOffset=0x8)" P-INDEP
-; V46 tmp43 [V46,T08] ( 2, 4 ) long -> rdx "argument with side effect"
-; V47 tmp44 [V47,T14] ( 2, 2 ) int -> r15 "argument with side effect"
-; V48 tmp45 [V48,T11] ( 2, 2 ) ref -> rsi single-def "argument with side effect"
-; V49 cse0 [V49,T18] ( 3, 1.50) int -> rcx "CSE #01: moderate"
-; V50 rat0 [V50,T06] ( 3, 4 ) long -> rdx "runtime lookup"
-; V51 rat1 [V51,T02] ( 3, 5.60) long -> rdx "fgMakeTemp is creating a new local variable"
+; V46 tmp43 [V46,T10] ( 2, 2 ) int -> rbx "argument with side effect"
+; V47 tmp44 [V47,T07] ( 2, 2 ) ref -> rsi single-def "argument with side effect"
+; V48 cse0 [V48,T14] ( 3, 1.50) int -> rcx "CSE #01: moderate"
;
; Lcl frame size = 16
G_M9419_IG01:
push rbp
push r15
push rbx
sub rsp, 16
lea rbp, [rsp+0x20]
xor eax, eax
mov qword ptr [rbp-0x20], rax
mov qword ptr [rbp-0x18], rsi
- mov r15, rdi
- mov rbx, rsi
+ mov rbx, rdi
+ mov r15, rsi
;; size=29 bbWeight=1 PerfScore 6.50
G_M9419_IG02:
- mov rdi, qword ptr [rbx+0x18]
- mov rdx, qword ptr [rdi+0x10]
- test rdx, rdx
- je SHORT G_M9419_IG06
- ;; size=13 bbWeight=1 PerfScore 5.25
-G_M9419_IG03:
- mov rdi, r15
- mov rsi, 0xD1FFAB1E ; System.Text.Json.Nodes.JsonValue
- mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_VIRTUAL_FUNC_PTR
- call [rax]CORINFO_HELP_VIRTUAL_FUNC_PTR
- lea rsi, [rbp-0x20]
- mov rdi, r15
- call rax
- test eax, eax
- jne SHORT G_M9419_IG07
- ;; size=38 bbWeight=1 PerfScore 8.75
-G_M9419_IG04:
- add r15, 24
- mov rdi, gword ptr [r15]
- test rdi, rdi
- jne SHORT G_M9419_IG09
- xor edi, edi
- ;; size=14 bbWeight=0.50 PerfScore 1.88
-G_M9419_IG05:
- mov rax, 0xD1FFAB1E ; code for System.Text.Json.JsonReaderHelper:ToValueKind(ubyte):ubyte
- call [rax]System.Text.Json.JsonReaderHelper:ToValueKind(ubyte):ubyte
- mov r15d, eax
- mov rdi, qword ptr [rbx+0x18]
- mov rdi, qword ptr [rdi]
- mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_TYPEHANDLE_TO_RUNTIMETYPE
- call [rax]CORINFO_HELP_TYPEHANDLE_TO_RUNTIMETYPE
- mov rsi, rax
- mov edi, r15d
- mov rax, 0xD1FFAB1E ; code for System.Text.Json.ThrowHelper:ThrowInvalidOperationException_NodeUnableToConvertElement(ubyte,System.Type)
- call [rax]System.Text.Json.ThrowHelper:ThrowInvalidOperationException_NodeUnableToConvertElement(ubyte,System.Type)
- int3
- ;; size=53 bbWeight=0.50 PerfScore 7.38
-G_M9419_IG06:
+ cmp byte ptr [rbx], bl
+ lea rdx, [rbp-0x20]
mov rdi, rbx
- mov rsi, 0xD1FFAB1E ; global ptr
- mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_METHOD
- call [rax]CORINFO_HELP_RUNTIMEHANDLE_METHOD
- mov rdx, rax
- jmp G_M9419_IG03
- ;; size=33 bbWeight=0.20 PerfScore 1.20
-G_M9419_IG07:
+ mov rsi, 0xD1FFAB1E ; System.Text.Json.Nodes.JsonValueOfElement:TryGetValue[System.__Canon](byref):ubyte:this
+ mov rax, 0xD1FFAB1E ; code for System.Text.Json.Nodes.JsonValueOfElement:TryGetValue[System.__Canon](byref):ubyte:this
+ call [rax]System.Text.Json.Nodes.JsonValueOfElement:TryGetValue[System.__Canon](byref):ubyte:this
+ test eax, eax
+ je SHORT G_M9419_IG04
mov rax, gword ptr [rbp-0x20]
- ;; size=4 bbWeight=1 PerfScore 1.00
-G_M9419_IG08:
+ ;; size=39 bbWeight=1 PerfScore 9.50
+G_M9419_IG03:
add rsp, 16
pop rbx
pop r15
pop rbp
ret
;; size=9 bbWeight=1 PerfScore 2.75
-G_M9419_IG09:
- mov eax, dword ptr [r15+0x08]
+G_M9419_IG04:
+ add rbx, 24
+ mov rdi, gword ptr [rbx]
+ test rdi, rdi
+ je SHORT G_M9419_IG10
+ mov eax, dword ptr [rbx+0x08]
cmp dword ptr [rdi+0x2C], 0
- je SHORT G_M9419_IG14
+ je SHORT G_M9419_IG09
mov rdi, gword ptr [rdi+0x30]
add eax, 8
test rdi, rdi
- je SHORT G_M9419_IG10
+ je SHORT G_M9419_IG05
mov ecx, dword ptr [rdi+0x08]
cmp ecx, eax
- jb SHORT G_M9419_IG13
+ jb SHORT G_M9419_IG08
mov edx, eax
lea rdi, bword ptr [rdi+rdx+0x10]
sub ecx, eax
- jmp SHORT G_M9419_IG11
- ;; size=40 bbWeight=0.50 PerfScore 8.12
-G_M9419_IG10:
+ jmp SHORT G_M9419_IG06
+ ;; size=51 bbWeight=0.50 PerfScore 9.88
+G_M9419_IG05:
test eax, eax
- jne SHORT G_M9419_IG13
+ jne SHORT G_M9419_IG08
xor rdi, rdi
xor ecx, ecx
;; size=8 bbWeight=0.50 PerfScore 0.88
-G_M9419_IG11:
+G_M9419_IG06:
cmp ecx, 4
- jl SHORT G_M9419_IG12
+ jl SHORT G_M9419_IG07
mov edi, dword ptr [rdi]
shr edi, 28
movzx rdi, dil
- jmp G_M9419_IG05
- ;; size=19 bbWeight=0.50 PerfScore 3.00
-G_M9419_IG12:
+ jmp SHORT G_M9419_IG11
+ ;; size=16 bbWeight=0.50 PerfScore 3.00
+G_M9419_IG07:
mov edi, 40
mov rax, 0xD1FFAB1E ; code for System.ThrowHelper:ThrowArgumentOutOfRangeException(int)
call [rax]System.ThrowHelper:ThrowArgumentOutOfRangeException(int)
int3
;; size=18 bbWeight=0.50 PerfScore 1.88
-G_M9419_IG13:
+G_M9419_IG08:
mov rax, 0xD1FFAB1E ; code for System.ThrowHelper:ThrowArgumentOutOfRangeException()
call [rax]System.ThrowHelper:ThrowArgumentOutOfRangeException()
int3
;; size=13 bbWeight=0.50 PerfScore 1.75
-G_M9419_IG14:
+G_M9419_IG09:
mov rax, 0xD1FFAB1E ; code for System.Text.Json.ThrowHelper:ThrowObjectDisposedException_JsonDocument()
call [rax]System.Text.Json.ThrowHelper:ThrowObjectDisposedException_JsonDocument()
int3
;; size=13 bbWeight=0.50 PerfScore 1.75
+G_M9419_IG10:
+ xor edi, edi
+ ;; size=2 bbWeight=0.50 PerfScore 0.12
+G_M9419_IG11:
+ mov rax, 0xD1FFAB1E ; code for System.Text.Json.JsonReaderHelper:ToValueKind(ubyte):ubyte
+ call [rax]System.Text.Json.JsonReaderHelper:ToValueKind(ubyte):ubyte
+ mov ebx, eax
+ mov rdi, qword ptr [r15+0x18]
+ mov rdi, qword ptr [rdi]
+ mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_TYPEHANDLE_TO_RUNTIMETYPE
+ call [rax]CORINFO_HELP_TYPEHANDLE_TO_RUNTIMETYPE
+ mov rsi, rax
+ mov edi, ebx
+ mov rax, 0xD1FFAB1E ; code for System.Text.Json.ThrowHelper:ThrowInvalidOperationException_NodeUnableToConvertElement(ubyte,System.Type)
+ call [rax]System.Text.Json.ThrowHelper:ThrowInvalidOperationException_NodeUnableToConvertElement(ubyte,System.Type)
+ int3
+ ;; size=51 bbWeight=0.50 PerfScore 7.38
-; Total bytes of code 304, prolog size 23, PerfScore 52.08, instruction count 86, allocated bytes for code 304 (MethodHash=f5acdb34) for method System.Text.Json.Nodes.JsonValueOfElement:GetValue[System.__Canon]():System.__Canon:this (FullOpts)
+; Total bytes of code 249, prolog size 23, PerfScore 45.38, instruction count 75, allocated bytes for code 249 (MethodHash=f5acdb34) for method System.Text.Json.Nodes.JsonValueOfElement:GetValue[System.__Canon]():System.__Canon:this (FullOpts)
; ============================================================ -51 (-8.87 % of base) - Microsoft.Extensions.DependencyInjection.OptionsBuilderExtensions:ValidateOnStart[System.__Canon](Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]):Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon] ; Assembly listing for method Microsoft.Extensions.DependencyInjection.OptionsBuilderExtensions:ValidateOnStart[System.__Canon](Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]):Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon] (FullOpts)
; Emitting BLENDED_CODE for X64 with AVX512 - Unix
; FullOpts code
; optimized code
; rbp based frame
; partially interruptible
; No PGO data
; 0 inlinees with PGO data; 8 single block inlinees; 6 inlinees without PGO data
; Final local variable assignments
;
-; V00 TypeCtx [V00,T01] ( 9, 6.60) long -> rbx single-def
-; V01 arg0 [V01,T09] ( 3, 3 ) ref -> r15 class-hnd single-def <Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]>
+; V00 TypeCtx [V00,T03] ( 7, 5.40) long -> rbx single-def
+; V01 arg0 [V01,T08] ( 3, 3 ) ref -> r15 class-hnd single-def <Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]>
; V02 loc0 [V02,T04] ( 6, 6 ) ref -> r14 class-hnd exact single-def <Microsoft.Extensions.DependencyInjection.OptionsBuilderExtensions+<>c__DisplayClass0_0`1[System.__Canon]>
;# V03 OutArgs [V03 ] ( 1, 1 ) struct ( 0) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
;* V04 tmp1 [V04 ] ( 0, 0 ) ref -> zero-ref class-hnd exact "NewObj constructor temp" <Microsoft.Extensions.DependencyInjection.OptionsBuilderExtensions+<>c__DisplayClass0_0`1[System.__Canon]>
;* V05 tmp2 [V05 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
-; V06 tmp3 [V06,T02] ( 4, 8 ) ref -> r15 class-hnd exact single-def "NewObj constructor temp" <System.Action`2[System.__Canon,System.__Canon]>
+; V06 tmp3 [V06,T00] ( 4, 8 ) ref -> rbx class-hnd exact single-def "NewObj constructor temp" <System.Action`2[System.__Canon,System.__Canon]>
;* V07 tmp4 [V07 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
;* V08 tmp5 [V08 ] ( 0, 0 ) ref -> zero-ref class-hnd exact single-def "impAppendStmt" <Microsoft.Extensions.Options.OptionsBuilder`1[Microsoft.Extensions.Options.StartupValidatorOptions]>
;* V09 tmp6 [V09 ] ( 0, 0 ) long -> zero-ref "spilling helperCall"
-; V10 tmp7 [V10,T14] ( 2, 4 ) long -> rax "VirtualCall through function pointer"
+;* V10 tmp7 [V10 ] ( 0, 0 ) long -> zero-ref "VirtualCall through function pointer"
;* V11 tmp8 [V11 ] ( 0, 0 ) ref -> zero-ref class-hnd "Inlining Arg" <Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]>
;* V12 tmp9 [V12 ] ( 0, 0 ) ref -> zero-ref class-hnd "Inlining Arg" <Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]>
; V13 tmp10 [V13,T05] ( 3, 6 ) ref -> rdi class-hnd single-def "Inlining Arg" <Microsoft.Extensions.DependencyInjection.IServiceCollection>
;* V14 tmp11 [V14 ] ( 0, 0 ) ref -> zero-ref class-hnd "Inlining Arg" <Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]>
-; V15 tmp12 [V15,T03] ( 4, 8 ) ref -> r15 class-hnd single-def "Inlining Arg" <Microsoft.Extensions.DependencyInjection.IServiceCollection>
-; V16 tmp13 [V16,T13] ( 2, 4 ) ref -> r13 class-hnd exact single-def "Inlining Arg" <System.String>
-; V17 tmp14 [V17,T00] ( 5, 10 ) ref -> r12 class-hnd exact single-def "NewObj constructor temp" <Microsoft.Extensions.Options.OptionsBuilder`1[Microsoft.Extensions.Options.StartupValidatorOptions]>
+; V15 tmp12 [V15,T01] ( 4, 8 ) ref -> r15 class-hnd single-def "Inlining Arg" <Microsoft.Extensions.DependencyInjection.IServiceCollection>
+; V16 tmp13 [V16,T11] ( 2, 4 ) ref -> r13 class-hnd exact single-def "Inlining Arg" <System.String>
+; V17 tmp14 [V17,T02] ( 4, 8 ) ref -> r12 class-hnd exact single-def "NewObj constructor temp" <Microsoft.Extensions.Options.OptionsBuilder`1[Microsoft.Extensions.Options.StartupValidatorOptions]>
;* V18 tmp15 [V18 ] ( 0, 0 ) ref -> zero-ref single-def
-; V19 tmp16 [V19,T16] ( 4, 3.50) ref -> rsi
-; V20 tmp17 [V20,T15] ( 2, 4 ) long -> rdx "argument with side effect"
-;* V21 cse0 [V21,T18] ( 0, 0 ) byref -> zero-ref "CSE #03: moderate"
-; V22 cse1 [V22,T17] ( 3, 3 ) ref -> rdi "CSE #01: moderate"
-; V23 rat0 [V23,T10] ( 3, 4 ) long -> rdi "runtime lookup"
-; V24 rat1 [V24,T06] ( 3, 5.60) long -> rdi "fgMakeTemp is creating a new local variable"
-; V25 rat2 [V25,T11] ( 3, 4 ) long -> rdi "runtime lookup"
-; V26 rat3 [V26,T07] ( 3, 5.60) long -> rdi "fgMakeTemp is creating a new local variable"
-; V27 rat4 [V27,T12] ( 3, 4 ) long -> rdx "runtime lookup"
-; V28 rat5 [V28,T08] ( 3, 5.60) long -> rdx "fgMakeTemp is creating a new local variable"
+; V19 tmp16 [V19,T12] ( 4, 3.50) ref -> rsi
+;* V20 cse0 [V20,T14] ( 0, 0 ) byref -> zero-ref "CSE #03: moderate"
+; V21 cse1 [V21,T13] ( 3, 3 ) ref -> rdi "CSE #01: moderate"
+; V22 rat0 [V22,T09] ( 3, 4 ) long -> rdi "runtime lookup"
+; V23 rat1 [V23,T06] ( 3, 5.60) long -> rdi "fgMakeTemp is creating a new local variable"
+; V24 rat2 [V24,T10] ( 3, 4 ) long -> rdi "runtime lookup"
+; V25 rat3 [V25,T07] ( 3, 5.60) long -> rdi "fgMakeTemp is creating a new local variable"
;
; Lcl frame size = 8
G_M23951_IG01:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
lea rbp, [rsp+0x30]
mov qword ptr [rbp-0x30], rdi
mov rbx, rdi
mov r15, rsi
;; size=26 bbWeight=1 PerfScore 9.00
G_M23951_IG02:
mov rdi, qword ptr [rbx+0x18]
mov rdi, qword ptr [rdi+0x10]
test rdi, rdi
je SHORT G_M23951_IG05
;; size=13 bbWeight=1 PerfScore 5.25
G_M23951_IG03:
call CORINFO_HELP_NEWSFAST
mov r14, rax
lea rdi, bword ptr [r14+0x08]
mov rsi, r15
call CORINFO_HELP_ASSIGN_REF
mov rdi, gword ptr [r14+0x08]
test rdi, rdi
jne SHORT G_M23951_IG06
;; size=29 bbWeight=1 PerfScore 6.25
G_M23951_IG04:
mov edi, 465
mov rsi, 0xD1FFAB1E
call CORINFO_HELP_STRCNS
mov rdi, rax
mov rax, 0xD1FFAB1E ; code for System.ThrowHelper:Throw(System.String)
call [rax]System.ThrowHelper:Throw(System.String)
int3
;; size=36 bbWeight=0.50 PerfScore 2.62
G_M23951_IG05:
mov rdi, rbx
mov rsi, 0xD1FFAB1E ; global ptr
mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_METHOD
call [rax]CORINFO_HELP_RUNTIMEHANDLE_METHOD
mov rdi, rax
jmp SHORT G_M23951_IG03
;; size=30 bbWeight=0.20 PerfScore 1.20
G_M23951_IG06:
mov rdi, gword ptr [rdi+0x10]
test rdi, rdi
- je G_M23951_IG17
+ je G_M23951_IG15
mov rsi, 0xD1FFAB1E ; 'Microsoft.Extensions.Options.IStartupValidator'
mov rdx, 0xD1FFAB1E ; 'Microsoft.Extensions.Options.StartupValidator'
mov rax, 0xD1FFAB1E ; code for Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions:TryAddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)
call [rax]Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions:TryAddTransient(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Type,System.Type)
mov rdi, gword ptr [r14+0x08]
mov r15, gword ptr [rdi+0x10]
mov rdi, 0xD1FFAB1E ; global ptr
test byte ptr [rdi], 1
- je G_M23951_IG18
+ je G_M23951_IG16
;; size=72 bbWeight=1 PerfScore 15.25
G_M23951_IG07:
mov rdi, 0xD1FFAB1E ; data for Microsoft.Extensions.Options.Options:DefaultName
mov r13, gword ptr [rdi]
test r15, r15
jne SHORT G_M23951_IG09
;; size=18 bbWeight=1 PerfScore 3.50
G_M23951_IG08:
mov edi, 495
mov rsi, 0xD1FFAB1E
call CORINFO_HELP_STRCNS
mov rdi, rax
mov rax, 0xD1FFAB1E ; code for System.ThrowHelper:Throw(System.String)
call [rax]System.ThrowHelper:Throw(System.String)
int3
;; size=36 bbWeight=0.50 PerfScore 2.62
G_M23951_IG09:
mov rdi, r15
mov rax, 0xD1FFAB1E ; code for Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions:AddOptions(Microsoft.Extensions.DependencyInjection.IServiceCollection):Microsoft.Extensions.DependencyInjection.IServiceCollection
call [rax]Microsoft.Extensions.DependencyInjection.OptionsServiceCollectionExtensions:AddOptions(Microsoft.Extensions.DependencyInjection.IServiceCollection):Microsoft.Extensions.DependencyInjection.IServiceCollection
mov rdi, 0xD1FFAB1E ; Microsoft.Extensions.Options.OptionsBuilder`1[Microsoft.Extensions.Options.StartupValidatorOptions]
call CORINFO_HELP_NEWSFAST
mov r12, rax
lea rdi, bword ptr [r12+0x10]
mov rsi, r15
call CORINFO_HELP_ASSIGN_REF
mov rsi, r13
test rsi, rsi
jne SHORT G_M23951_IG11
;; size=54 bbWeight=1 PerfScore 8.25
G_M23951_IG10:
mov rsi, 0xD1FFAB1E ; data for Microsoft.Extensions.Options.Options:DefaultName
mov rsi, gword ptr [rsi]
;; size=13 bbWeight=0.50 PerfScore 1.12
G_M23951_IG11:
lea rdi, bword ptr [r12+0x08]
call CORINFO_HELP_ASSIGN_REF
mov rdi, qword ptr [rbx+0x18]
mov rdi, qword ptr [rdi+0x18]
test rdi, rdi
- je SHORT G_M23951_IG15
+ je SHORT G_M23951_IG14
;; size=23 bbWeight=1 PerfScore 6.75
G_M23951_IG12:
call CORINFO_HELP_NEWSFAST
- mov r15, rax
- lea rdi, bword ptr [r15+0x08]
+ mov rbx, rax
+ lea rdi, bword ptr [rbx+0x08]
mov rsi, r14
call CORINFO_HELP_ASSIGN_REF
mov rdi, 0xD1FFAB1E ; code for Microsoft.Extensions.DependencyInjection.OptionsBuilderExtensions+<>c__DisplayClass0_0`1[System.__Canon]:<ValidateOnStart>b__0(Microsoft.Extensions.Options.StartupValidatorOptions,Microsoft.Extensions.Options.IOptionsMonitor`1[System.__Canon]):this
- mov qword ptr [r15+0x18], rdi
- mov rdi, qword ptr [rbx+0x18]
- mov rdx, qword ptr [rdi+0x20]
- test rdx, rdx
- je SHORT G_M23951_IG16
- ;; size=47 bbWeight=1 PerfScore 9.50
-G_M23951_IG13:
+ mov qword ptr [rbx+0x18], rdi
mov rdi, r12
- mov rsi, 0xD1FFAB1E ; Microsoft.Extensions.Options.OptionsBuilder`1[Microsoft.Extensions.Options.StartupValidatorOptions]
- mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_VIRTUAL_FUNC_PTR
- call [rax]CORINFO_HELP_VIRTUAL_FUNC_PTR
- mov rdi, r12
- mov rsi, r15
- call rax
+ mov rdx, rbx
+ mov rsi, 0xD1FFAB1E ; Microsoft.Extensions.Options.OptionsBuilder`1[Microsoft.Extensions.Options.StartupValidatorOptions]:Configure[Microsoft.Extensions.Options.IOptionsMonitor`1[System.__Canon]](System.Action`2[System.__Canon,System.__Canon]):Microsoft.Extensions.Options.OptionsBuilder`1[Microsoft.Extensions.Options.StartupValidatorOptions]:this
+ mov rax, 0xD1FFAB1E ; code for Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]:Configure[System.__Canon](System.Action`2[System.__Canon,System.__Canon]):Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]:this
+ call [rax]Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]:Configure[System.__Canon](System.Action`2[System.__Canon,System.__Canon]):Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]:this
mov rax, gword ptr [r14+0x08]
- ;; size=37 bbWeight=1 PerfScore 9.25
-G_M23951_IG14:
+ ;; size=66 bbWeight=1 PerfScore 10.25
+G_M23951_IG13:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
;; size=15 bbWeight=1 PerfScore 4.25
-G_M23951_IG15:
+G_M23951_IG14:
mov rdi, rbx
mov rsi, 0xD1FFAB1E ; global ptr
mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_METHOD
call [rax]CORINFO_HELP_RUNTIMEHANDLE_METHOD
mov rdi, rax
- jmp G_M23951_IG12
- ;; size=33 bbWeight=0.20 PerfScore 1.20
-G_M23951_IG16:
- mov rdi, rbx
- mov rsi, 0xD1FFAB1E ; global ptr
- mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_RUNTIMEHANDLE_METHOD
- call [rax]CORINFO_HELP_RUNTIMEHANDLE_METHOD
- mov rdx, rax
- jmp SHORT G_M23951_IG13
+ jmp SHORT G_M23951_IG12
;; size=30 bbWeight=0.20 PerfScore 1.20
-G_M23951_IG17:
+G_M23951_IG15:
mov edi, 0x84B
mov rsi, 0xD1FFAB1E
call CORINFO_HELP_STRCNS
mov rdi, rax
mov rax, 0xD1FFAB1E ; code for System.ThrowHelper:Throw(System.String)
call [rax]System.ThrowHelper:Throw(System.String)
int3
;; size=36 bbWeight=0.50 PerfScore 2.62
-G_M23951_IG18:
+G_M23951_IG16:
mov rdi, 0xD1FFAB1E ; Microsoft.Extensions.Options.Options
mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_GET_GCSTATIC_BASE
call [rax]CORINFO_HELP_GET_GCSTATIC_BASE
jmp G_M23951_IG07
;; size=27 bbWeight=0 PerfScore 0.00
-; Total bytes of code 575, prolog size 20, PerfScore 89.85, instruction count 129, allocated bytes for code 575 (MethodHash=a202a270) for method Microsoft.Extensions.DependencyInjection.OptionsBuilderExtensions:ValidateOnStart[System.__Canon](Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]):Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon] (FullOpts)
+; Total bytes of code 524, prolog size 20, PerfScore 80.15, instruction count 117, allocated bytes for code 524 (MethodHash=a202a270) for method Microsoft.Extensions.DependencyInjection.OptionsBuilderExtensions:ValidateOnStart[System.__Canon](Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon]):Microsoft.Extensions.Options.OptionsBuilder`1[System.__Canon] (FullOpts)
; ============================================================ -23 (-10.04 % of base) - System.Text.Json.Nodes.JsonValueOfElement:GetValue[double]():double:this ; Assembly listing for method System.Text.Json.Nodes.JsonValueOfElement:GetValue[double]():double:this (FullOpts)
; Emitting BLENDED_CODE for X64 with AVX512 - Unix
; FullOpts code
; optimized code
; rbp based frame
; partially interruptible
; No PGO data
; 0 inlinees with PGO data; 8 single block inlinees; 4 inlinees without PGO data
; Final local variable assignments
;
; V00 this [V00,T00] ( 5, 4.50) ref -> rbx this class-hnd single-def <System.Text.Json.Nodes.JsonValueOfElement>
; V01 loc0 [V01 ] ( 2, 2 ) double -> [rbp-0x10] do-not-enreg[X] addr-exposed ld-addr-op
;# V02 OutArgs [V02 ] ( 1, 1 ) struct ( 0) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
-; V03 tmp1 [V03,T04] ( 2, 4 ) long -> rax "VirtualCall through function pointer"
-; V04 tmp2 [V04,T05] ( 3, 3 ) byref -> rbx single-def "Inlining Arg"
-; V05 tmp3 [V05,T11] ( 3, 1.50) ubyte -> rdi "Inline return value spill temp"
+;* V03 tmp1 [V03 ] ( 0, 0 ) long -> zero-ref "VirtualCall through function pointer"
+; V04 tmp2 [V04,T04] ( 3, 3 ) byref -> rbx single-def "Inlining Arg"
+; V05 tmp3 [V05,T10] ( 3, 1.50) ubyte -> rdi "Inline return value spill temp"
; V06 tmp4 [V06,T02] ( 4, 4 ) ref -> rdi class-hnd exact single-def "dup spill" <System.Text.Json.JsonDocument>
;* V07 tmp5 [V07 ] ( 0, 0 ) ref -> zero-ref single-def
-; V08 tmp6 [V08,T07] ( 2, 2 ) int -> rax "Inlining Arg"
+; V08 tmp6 [V08,T06] ( 2, 2 ) int -> rax "Inlining Arg"
;* V09 tmp7 [V09 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
;* V10 tmp8 [V10 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
;* V11 tmp9 [V11 ] ( 0, 0 ) struct (16) zero-ref "spilled call-like call argument" <System.Span`1[ubyte]>
;* V12 tmp10 [V12 ] ( 0, 0 ) struct (16) zero-ref "spilled call-like call argument" <System.ReadOnlySpan`1[ubyte]>
;* V13 tmp11 [V13 ] ( 0, 0 ) struct (16) zero-ref "Inline return value spill temp" <System.Span`1[ubyte]>
; V14 tmp12 [V14,T03] ( 4, 4 ) ref -> rdi class-hnd single-def "Inlining Arg" <ubyte[]>
; V15 tmp13 [V15,T01] ( 5, 5 ) int -> rax "Inlining Arg"
;* V16 tmp14 [V16 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "NewObj constructor temp" <System.Span`1[ubyte]>
;* V17 tmp15 [V17 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inline ldloca(s) first use temp" <System.Span`1[ubyte]>
-; V18 tmp16 [V18,T06] ( 2, 2 ) byref -> rdi single-def "Inlining Arg"
-; V19 tmp17 [V19,T08] ( 2, 2 ) int -> rcx "Inlining Arg"
+; V18 tmp16 [V18,T05] ( 2, 2 ) byref -> rdi single-def "Inlining Arg"
+; V19 tmp17 [V19,T07] ( 2, 2 ) int -> rcx "Inlining Arg"
;* V20 tmp18 [V20 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inlining Arg" <System.Span`1[ubyte]>
;* V21 tmp19 [V21 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "NewObj constructor temp" <System.ReadOnlySpan`1[ubyte]>
;* V22 tmp20 [V22 ] ( 0, 0 ) byref -> zero-ref single-def "Inlining Arg"
;* V23 tmp21 [V23 ] ( 0, 0 ) int -> zero-ref "Inlining Arg"
;* V24 tmp22 [V24 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inlining Arg" <System.ReadOnlySpan`1[ubyte]>
;* V25 tmp23 [V25 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inlining Arg" <System.ReadOnlySpan`1[ubyte]>
;* V26 tmp24 [V26 ] ( 0, 0 ) byref -> zero-ref "field V11._reference (fldOffset=0x0)" P-INDEP
;* V27 tmp25 [V27 ] ( 0, 0 ) int -> zero-ref "field V11._length (fldOffset=0x8)" P-INDEP
;* V28 tmp26 [V28 ] ( 0, 0 ) byref -> zero-ref "field V12._reference (fldOffset=0x0)" P-INDEP
;* V29 tmp27 [V29 ] ( 0, 0 ) int -> zero-ref "field V12._length (fldOffset=0x8)" P-INDEP
-; V30 tmp28 [V30,T10] ( 3, 1.50) byref -> rdi "field V13._reference (fldOffset=0x0)" P-INDEP
-; V31 tmp29 [V31,T12] ( 3, 1.50) int -> rcx "field V13._length (fldOffset=0x8)" P-INDEP
-; V32 tmp30 [V32,T14] ( 2, 1 ) byref -> rdi single-def "field V16._reference (fldOffset=0x0)" P-INDEP
-; V33 tmp31 [V33,T15] ( 2, 1 ) int -> rcx "field V16._length (fldOffset=0x8)" P-INDEP
+; V30 tmp28 [V30,T09] ( 3, 1.50) byref -> rdi "field V13._reference (fldOffset=0x0)" P-INDEP
+; V31 tmp29 [V31,T11] ( 3, 1.50) int -> rcx "field V13._length (fldOffset=0x8)" P-INDEP
+; V32 tmp30 [V32,T13] ( 2, 1 ) byref -> rdi single-def "field V16._reference (fldOffset=0x0)" P-INDEP
+; V33 tmp31 [V33,T14] ( 2, 1 ) int -> rcx "field V16._length (fldOffset=0x8)" P-INDEP
;* V34 tmp32 [V34 ] ( 0, 0 ) byref -> zero-ref single-def "field V17._reference (fldOffset=0x0)" P-INDEP
;* V35 tmp33 [V35 ] ( 0, 0 ) int -> zero-ref "field V17._length (fldOffset=0x8)" P-INDEP
;* V36 tmp34 [V36 ] ( 0, 0 ) byref -> zero-ref single-def "field V20._reference (fldOffset=0x0)" P-INDEP
;* V37 tmp35 [V37 ] ( 0, 0 ) int -> zero-ref "field V20._length (fldOffset=0x8)" P-INDEP
;* V38 tmp36 [V38 ] ( 0, 0 ) byref -> zero-ref single-def "field V21._reference (fldOffset=0x0)" P-INDEP
;* V39 tmp37 [V39 ] ( 0, 0 ) int -> zero-ref "field V21._length (fldOffset=0x8)" P-INDEP
;* V40 tmp38 [V40 ] ( 0, 0 ) byref -> zero-ref single-def "field V24._reference (fldOffset=0x0)" P-INDEP
;* V41 tmp39 [V41 ] ( 0, 0 ) int -> zero-ref "field V24._length (fldOffset=0x8)" P-INDEP
;* V42 tmp40 [V42 ] ( 0, 0 ) byref -> zero-ref single-def "field V25._reference (fldOffset=0x0)" P-INDEP
;* V43 tmp41 [V43 ] ( 0, 0 ) int -> zero-ref "field V25._length (fldOffset=0x8)" P-INDEP
-; V44 tmp42 [V44,T09] ( 2, 2 ) int -> rdi "argument with side effect"
-; V45 cse0 [V45,T13] ( 3, 1.50) int -> rcx "CSE #01: moderate"
+; V44 tmp42 [V44,T08] ( 2, 2 ) int -> rdi "argument with side effect"
+; V45 cse0 [V45,T12] ( 3, 1.50) int -> rcx "CSE #01: moderate"
;
; Lcl frame size = 8
G_M715_IG01:
push rbp
push rbx
push rax
lea rbp, [rsp+0x10]
mov rbx, rdi
;; size=11 bbWeight=1 PerfScore 3.75
G_M715_IG02:
- mov rdi, rbx
- mov rsi, 0xD1FFAB1E ; System.Text.Json.Nodes.JsonValue
- mov rdx, 0xD1FFAB1E ; token handle
- mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_VIRTUAL_FUNC_PTR
- call [rax]CORINFO_HELP_VIRTUAL_FUNC_PTR
+ cmp byte ptr [rbx], bl
lea rsi, [rbp-0x10]
mov rdi, rbx
- call rax
+ mov rax, 0xD1FFAB1E ; code for System.Text.Json.Nodes.JsonValueOfElement:TryGetValue[double](byref):ubyte:this
+ call [rax]System.Text.Json.Nodes.JsonValueOfElement:TryGetValue[double](byref):ubyte:this
test eax, eax
je SHORT G_M715_IG04
vmovsd xmm0, qword ptr [rbp-0x10]
- ;; size=53 bbWeight=1 PerfScore 12.00
+ ;; size=30 bbWeight=1 PerfScore 11.25
G_M715_IG03:
add rsp, 8
pop rbx
pop rbp
ret
;; size=7 bbWeight=1 PerfScore 2.25
G_M715_IG04:
add rbx, 24
mov rdi, gword ptr [rbx]
test rdi, rdi
je SHORT G_M715_IG10
mov eax, dword ptr [rbx+0x08]
cmp dword ptr [rdi+0x2C], 0
je SHORT G_M715_IG09
mov rdi, gword ptr [rdi+0x30]
add eax, 8
test rdi, rdi
je SHORT G_M715_IG05
mov ecx, dword ptr [rdi+0x08]
cmp ecx, eax
jb SHORT G_M715_IG08
mov edx, eax
lea rdi, bword ptr [rdi+rdx+0x10]
sub ecx, eax
jmp SHORT G_M715_IG06
;; size=51 bbWeight=0.50 PerfScore 9.88
G_M715_IG05:
test eax, eax
jne SHORT G_M715_IG08
xor rdi, rdi
xor ecx, ecx
;; size=8 bbWeight=0.50 PerfScore 0.88
G_M715_IG06:
cmp ecx, 4
jl SHORT G_M715_IG07
mov edi, dword ptr [rdi]
shr edi, 28
movzx rdi, dil
jmp SHORT G_M715_IG11
;; size=16 bbWeight=0.50 PerfScore 3.00
G_M715_IG07:
mov edi, 40
mov rax, 0xD1FFAB1E ; code for System.ThrowHelper:ThrowArgumentOutOfRangeException(int)
call [rax]System.ThrowHelper:ThrowArgumentOutOfRangeException(int)
int3
;; size=18 bbWeight=0.50 PerfScore 1.88
G_M715_IG08:
mov rax, 0xD1FFAB1E ; code for System.ThrowHelper:ThrowArgumentOutOfRangeException()
call [rax]System.ThrowHelper:ThrowArgumentOutOfRangeException()
int3
;; size=13 bbWeight=0.50 PerfScore 1.75
G_M715_IG09:
mov rax, 0xD1FFAB1E ; code for System.Text.Json.ThrowHelper:ThrowObjectDisposedException_JsonDocument()
call [rax]System.Text.Json.ThrowHelper:ThrowObjectDisposedException_JsonDocument()
int3
;; size=13 bbWeight=0.50 PerfScore 1.75
G_M715_IG10:
xor edi, edi
;; size=2 bbWeight=0.50 PerfScore 0.12
G_M715_IG11:
mov rax, 0xD1FFAB1E ; code for System.Text.Json.JsonReaderHelper:ToValueKind(ubyte):ubyte
call [rax]System.Text.Json.JsonReaderHelper:ToValueKind(ubyte):ubyte
mov edi, eax
mov rsi, 0xD1FFAB1E ; 'System.Double'
mov rax, 0xD1FFAB1E ; code for System.Text.Json.ThrowHelper:ThrowInvalidOperationException_NodeUnableToConvertElement(ubyte,System.Type)
call [rax]System.Text.Json.ThrowHelper:ThrowInvalidOperationException_NodeUnableToConvertElement(ubyte,System.Type)
int3
;; size=37 bbWeight=0.50 PerfScore 3.62
-; Total bytes of code 229, prolog size 8, PerfScore 40.88, instruction count 66, allocated bytes for code 229 (MethodHash=7ea7fd34) for method System.Text.Json.Nodes.JsonValueOfElement:GetValue[double]():double:this (FullOpts)
+; Total bytes of code 206, prolog size 8, PerfScore 40.12, instruction count 63, allocated bytes for code 206 (MethodHash=7ea7fd34) for method System.Text.Json.Nodes.JsonValueOfElement:GetValue[double]():double:this (FullOpts)
; ============================================================ -23 (-10.13 % of base) - System.Text.Json.Nodes.JsonValueOfElement:GetValue[int]():int:this ; Assembly listing for method System.Text.Json.Nodes.JsonValueOfElement:GetValue[int]():int:this (FullOpts)
; Emitting BLENDED_CODE for X64 with AVX512 - Unix
; FullOpts code
; optimized code
; rbp based frame
; partially interruptible
; No PGO data
; 0 inlinees with PGO data; 8 single block inlinees; 4 inlinees without PGO data
; Final local variable assignments
;
; V00 this [V00,T00] ( 5, 4.50) ref -> rbx this class-hnd single-def <System.Text.Json.Nodes.JsonValueOfElement>
; V01 loc0 [V01 ] ( 2, 2 ) int -> [rbp-0x10] do-not-enreg[X] addr-exposed ld-addr-op
;# V02 OutArgs [V02 ] ( 1, 1 ) struct ( 0) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <Empty>
-; V03 tmp1 [V03,T04] ( 2, 4 ) long -> rax "VirtualCall through function pointer"
-; V04 tmp2 [V04,T05] ( 3, 3 ) byref -> rbx single-def "Inlining Arg"
-; V05 tmp3 [V05,T11] ( 3, 1.50) ubyte -> rdi "Inline return value spill temp"
+;* V03 tmp1 [V03 ] ( 0, 0 ) long -> zero-ref "VirtualCall through function pointer"
+; V04 tmp2 [V04,T04] ( 3, 3 ) byref -> rbx single-def "Inlining Arg"
+; V05 tmp3 [V05,T10] ( 3, 1.50) ubyte -> rdi "Inline return value spill temp"
; V06 tmp4 [V06,T02] ( 4, 4 ) ref -> rdi class-hnd exact single-def "dup spill" <System.Text.Json.JsonDocument>
;* V07 tmp5 [V07 ] ( 0, 0 ) ref -> zero-ref single-def
-; V08 tmp6 [V08,T07] ( 2, 2 ) int -> rax "Inlining Arg"
+; V08 tmp6 [V08,T06] ( 2, 2 ) int -> rax "Inlining Arg"
;* V09 tmp7 [V09 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
;* V10 tmp8 [V10 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
;* V11 tmp9 [V11 ] ( 0, 0 ) struct (16) zero-ref "spilled call-like call argument" <System.Span`1[ubyte]>
;* V12 tmp10 [V12 ] ( 0, 0 ) struct (16) zero-ref "spilled call-like call argument" <System.ReadOnlySpan`1[ubyte]>
;* V13 tmp11 [V13 ] ( 0, 0 ) struct (16) zero-ref "Inline return value spill temp" <System.Span`1[ubyte]>
; V14 tmp12 [V14,T03] ( 4, 4 ) ref -> rdi class-hnd single-def "Inlining Arg" <ubyte[]>
; V15 tmp13 [V15,T01] ( 5, 5 ) int -> rax "Inlining Arg"
;* V16 tmp14 [V16 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "NewObj constructor temp" <System.Span`1[ubyte]>
;* V17 tmp15 [V17 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inline ldloca(s) first use temp" <System.Span`1[ubyte]>
-; V18 tmp16 [V18,T06] ( 2, 2 ) byref -> rdi single-def "Inlining Arg"
-; V19 tmp17 [V19,T08] ( 2, 2 ) int -> rcx "Inlining Arg"
+; V18 tmp16 [V18,T05] ( 2, 2 ) byref -> rdi single-def "Inlining Arg"
+; V19 tmp17 [V19,T07] ( 2, 2 ) int -> rcx "Inlining Arg"
;* V20 tmp18 [V20 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inlining Arg" <System.Span`1[ubyte]>
;* V21 tmp19 [V21 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "NewObj constructor temp" <System.ReadOnlySpan`1[ubyte]>
;* V22 tmp20 [V22 ] ( 0, 0 ) byref -> zero-ref single-def "Inlining Arg"
;* V23 tmp21 [V23 ] ( 0, 0 ) int -> zero-ref "Inlining Arg"
;* V24 tmp22 [V24 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inlining Arg" <System.ReadOnlySpan`1[ubyte]>
;* V25 tmp23 [V25 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inlining Arg" <System.ReadOnlySpan`1[ubyte]>
;* V26 tmp24 [V26 ] ( 0, 0 ) byref -> zero-ref "field V11._reference (fldOffset=0x0)" P-INDEP
;* V27 tmp25 [V27 ] ( 0, 0 ) int -> zero-ref "field V11._length (fldOffset=0x8)" P-INDEP
;* V28 tmp26 [V28 ] ( 0, 0 ) byref -> zero-ref "field V12._reference (fldOffset=0x0)" P-INDEP
;* V29 tmp27 [V29 ] ( 0, 0 ) int -> zero-ref "field V12._length (fldOffset=0x8)" P-INDEP
-; V30 tmp28 [V30,T10] ( 3, 1.50) byref -> rdi "field V13._reference (fldOffset=0x0)" P-INDEP
-; V31 tmp29 [V31,T12] ( 3, 1.50) int -> rcx "field V13._length (fldOffset=0x8)" P-INDEP
-; V32 tmp30 [V32,T14] ( 2, 1 ) byref -> rdi single-def "field V16._reference (fldOffset=0x0)" P-INDEP
-; V33 tmp31 [V33,T15] ( 2, 1 ) int -> rcx "field V16._length (fldOffset=0x8)" P-INDEP
+; V30 tmp28 [V30,T09] ( 3, 1.50) byref -> rdi "field V13._reference (fldOffset=0x0)" P-INDEP
+; V31 tmp29 [V31,T11] ( 3, 1.50) int -> rcx "field V13._length (fldOffset=0x8)" P-INDEP
+; V32 tmp30 [V32,T13] ( 2, 1 ) byref -> rdi single-def "field V16._reference (fldOffset=0x0)" P-INDEP
+; V33 tmp31 [V33,T14] ( 2, 1 ) int -> rcx "field V16._length (fldOffset=0x8)" P-INDEP
;* V34 tmp32 [V34 ] ( 0, 0 ) byref -> zero-ref single-def "field V17._reference (fldOffset=0x0)" P-INDEP
;* V35 tmp33 [V35 ] ( 0, 0 ) int -> zero-ref "field V17._length (fldOffset=0x8)" P-INDEP
;* V36 tmp34 [V36 ] ( 0, 0 ) byref -> zero-ref single-def "field V20._reference (fldOffset=0x0)" P-INDEP
;* V37 tmp35 [V37 ] ( 0, 0 ) int -> zero-ref "field V20._length (fldOffset=0x8)" P-INDEP
;* V38 tmp36 [V38 ] ( 0, 0 ) byref -> zero-ref single-def "field V21._reference (fldOffset=0x0)" P-INDEP
;* V39 tmp37 [V39 ] ( 0, 0 ) int -> zero-ref "field V21._length (fldOffset=0x8)" P-INDEP
;* V40 tmp38 [V40 ] ( 0, 0 ) byref -> zero-ref single-def "field V24._reference (fldOffset=0x0)" P-INDEP
;* V41 tmp39 [V41 ] ( 0, 0 ) int -> zero-ref "field V24._length (fldOffset=0x8)" P-INDEP
;* V42 tmp40 [V42 ] ( 0, 0 ) byref -> zero-ref single-def "field V25._reference (fldOffset=0x0)" P-INDEP
;* V43 tmp41 [V43 ] ( 0, 0 ) int -> zero-ref "field V25._length (fldOffset=0x8)" P-INDEP
-; V44 tmp42 [V44,T09] ( 2, 2 ) int -> rdi "argument with side effect"
-; V45 cse0 [V45,T13] ( 3, 1.50) int -> rcx "CSE #01: moderate"
+; V44 tmp42 [V44,T08] ( 2, 2 ) int -> rdi "argument with side effect"
+; V45 cse0 [V45,T12] ( 3, 1.50) int -> rcx "CSE #01: moderate"
;
; Lcl frame size = 8
G_M37867_IG01:
push rbp
push rbx
push rax
lea rbp, [rsp+0x10]
mov rbx, rdi
;; size=11 bbWeight=1 PerfScore 3.75
G_M37867_IG02:
- mov rdi, rbx
- mov rsi, 0xD1FFAB1E ; System.Text.Json.Nodes.JsonValue
- mov rdx, 0xD1FFAB1E ; token handle
- mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_VIRTUAL_FUNC_PTR
- call [rax]CORINFO_HELP_VIRTUAL_FUNC_PTR
+ cmp byte ptr [rbx], bl
lea rsi, [rbp-0x10]
mov rdi, rbx
- call rax
+ mov rax, 0xD1FFAB1E ; code for System.Text.Json.Nodes.JsonValueOfElement:TryGetValue[int](byref):ubyte:this
+ call [rax]System.Text.Json.Nodes.JsonValueOfElement:TryGetValue[int](byref):ubyte:this
test eax, eax
je SHORT G_M37867_IG04
mov eax, dword ptr [rbp-0x10]
- ;; size=51 bbWeight=1 PerfScore 10.00
+ ;; size=28 bbWeight=1 PerfScore 9.25
G_M37867_IG03:
add rsp, 8
pop rbx
pop rbp
ret
;; size=7 bbWeight=1 PerfScore 2.25
G_M37867_IG04:
add rbx, 24
mov rdi, gword ptr [rbx]
test rdi, rdi
je SHORT G_M37867_IG10
mov eax, dword ptr [rbx+0x08]
cmp dword ptr [rdi+0x2C], 0
je SHORT G_M37867_IG09
mov rdi, gword ptr [rdi+0x30]
add eax, 8
test rdi, rdi
je SHORT G_M37867_IG05
mov ecx, dword ptr [rdi+0x08]
cmp ecx, eax
jb SHORT G_M37867_IG08
mov edx, eax
lea rdi, bword ptr [rdi+rdx+0x10]
sub ecx, eax
jmp SHORT G_M37867_IG06
;; size=51 bbWeight=0.50 PerfScore 9.88
G_M37867_IG05:
test eax, eax
jne SHORT G_M37867_IG08
xor rdi, rdi
xor ecx, ecx
;; size=8 bbWeight=0.50 PerfScore 0.88
G_M37867_IG06:
cmp ecx, 4
jl SHORT G_M37867_IG07
mov edi, dword ptr [rdi]
shr edi, 28
movzx rdi, dil
jmp SHORT G_M37867_IG11
;; size=16 bbWeight=0.50 PerfScore 3.00
G_M37867_IG07:
mov edi, 40
mov rax, 0xD1FFAB1E ; code for System.ThrowHelper:ThrowArgumentOutOfRangeException(int)
call [rax]System.ThrowHelper:ThrowArgumentOutOfRangeException(int)
int3
;; size=18 bbWeight=0.50 PerfScore 1.88
G_M37867_IG08:
mov rax, 0xD1FFAB1E ; code for System.ThrowHelper:ThrowArgumentOutOfRangeException()
call [rax]System.ThrowHelper:ThrowArgumentOutOfRangeException()
int3
;; size=13 bbWeight=0.50 PerfScore 1.75
G_M37867_IG09:
mov rax, 0xD1FFAB1E ; code for System.Text.Json.ThrowHelper:ThrowObjectDisposedException_JsonDocument()
call [rax]System.Text.Json.ThrowHelper:ThrowObjectDisposedException_JsonDocument()
int3
;; size=13 bbWeight=0.50 PerfScore 1.75
G_M37867_IG10:
xor edi, edi
;; size=2 bbWeight=0.50 PerfScore 0.12
G_M37867_IG11:
mov rax, 0xD1FFAB1E ; code for System.Text.Json.JsonReaderHelper:ToValueKind(ubyte):ubyte
call [rax]System.Text.Json.JsonReaderHelper:ToValueKind(ubyte):ubyte
mov edi, eax
mov rsi, 0xD1FFAB1E ; 'System.Int32'
mov rax, 0xD1FFAB1E ; code for System.Text.Json.ThrowHelper:ThrowInvalidOperationException_NodeUnableToConvertElement(ubyte,System.Type)
call [rax]System.Text.Json.ThrowHelper:ThrowInvalidOperationException_NodeUnableToConvertElement(ubyte,System.Type)
int3
;; size=37 bbWeight=0.50 PerfScore 3.62
-; Total bytes of code 227, prolog size 8, PerfScore 38.88, instruction count 66, allocated bytes for code 227 (MethodHash=48d36c14) for method System.Text.Json.Nodes.JsonValueOfElement:GetValue[int]():int:this (FullOpts)
+; Total bytes of code 204, prolog size 8, PerfScore 38.12, instruction count 63, allocated bytes for code 204 (MethodHash=48d36c14) for method System.Text.Json.Nodes.JsonValueOfElement:GetValue[int]():int:this (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/fa30b218754af95bc57c7e3ec65414d5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Job completed in 16 minutes 49 seconds (remote runner delay: 1 minute 26 seconds).
dotnet/runtime#112353
Diffs
Diffs
Artifacts:
The text was updated successfully, but these errors were encountered: