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] [MichalPetryka] Avoid spilling loads of static readonly variables #741
Comments
Top method regressions213 (22.47 % of base) - System.Threading.Tasks.TaskCompletionSourceWithCancellation`1+d__1[System.Nullable`1[int]]:MoveNext():this ; Assembly listing for method System.Threading.Tasks.TaskCompletionSourceWithCancellation`1+<WaitWithCancellationAsync>d__1[System.Nullable`1[int]]:MoveNext():this (FullOpts)
; Emitting BLENDED_CODE for X64 with AVX - Unix
; FullOpts code
; optimized code
; rbp based frame
; fully interruptible
; No PGO data
-; 0 inlinees with PGO data; 14 single block inlinees; 9 inlinees without PGO data
+; 0 inlinees with PGO data; 18 single block inlinees; 12 inlinees without PGO data
; Final local variable assignments
;
; V00 this [V00,T00] ( 20, 18 ) byref -> [rbp-0x50] this EH-live single-def
-; V01 loc0 [V01,T06] ( 7, 7 ) int -> [rbp-0x2C] do-not-enreg[Z] EH-live
-; V02 loc1 [V02,T19] ( 3, 3 ) ref -> rbx class-hnd single-def <System.Threading.Tasks.TaskCompletionSourceWithCancellation`1[System.Nullable`1[int]]>
+; V01 loc0 [V01,T07] ( 7, 7 ) int -> [rbp-0x2C] do-not-enreg[Z] EH-live
+; V02 loc1 [V02,T20] ( 3, 3 ) ref -> rbx class-hnd single-def <System.Threading.Tasks.TaskCompletionSourceWithCancellation`1[System.Nullable`1[int]]>
;* V03 loc2 [V03 ] ( 0, 0 ) struct ( 8) zero-ref <System.Nullable`1[int]>
; V04 loc3 [V04 ] ( 10, 10 ) struct (16) [rbp-0x40] do-not-enreg[XS] must-init addr-exposed ld-addr-op <System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[System.Nullable`1[int]]>
;* V05 loc4 [V05 ] ( 0, 0 ) struct (16) zero-ref do-not-enreg[S] ld-addr-op <System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1[System.Nullable`1[int]]>
;* V06 loc5 [V06 ] ( 0, 0 ) ref -> zero-ref class-hnd single-def <System.Exception>
-;# V07 OutArgs [V07 ] ( 1, 1 ) struct ( 0) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace"
+; V07 OutArgs [V07 ] ( 1, 1 ) struct ( 8) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace"
;* V08 tmp1 [V08 ] ( 0, 0 ) int -> zero-ref "dup spill"
-; V09 tmp2 [V09,T13] ( 2, 4 ) ref -> rsi class-hnd single-def "dup spill" <System.Action`2[System.Object,System.Threading.CancellationToken]>
-; V10 tmp3 [V10,T14] ( 2, 4 ) byref -> r15 single-def "impSpillLclRefs"
+; V09 tmp2 [V09,T15] ( 2, 4 ) ref -> rsi class-hnd single-def "dup spill" <System.Action`2[System.Object,System.Threading.CancellationToken]>
+; V10 tmp3 [V10,T16] ( 2, 4 ) byref -> r15 single-def "impSpillLclRefs"
;* V11 tmp4 [V11 ] ( 0, 0 ) byref -> zero-ref single-def
;* V12 tmp5 [V12 ] ( 0, 0 ) byref -> zero-ref single-def
-; V13 tmp6 [V13,T12] ( 5, 5 ) ref -> rsi
-; V14 tmp7 [V14,T03] ( 5, 10 ) ref -> r14 class-hnd exact single-def "NewObj constructor temp" <System.Action`2[System.Object,System.Threading.CancellationToken]>
-; V15 tmp8 [V15,T31] ( 2, 0 ) ref -> rsi class-hnd single-def "impSpillSpecialSideEff" <System.Exception>
-; V16 tmp9 [V16,T15] ( 2, 4 ) ref -> rsi class-hnd exact single-def "Inlining Arg" <System.Threading.Tasks.TaskCompletionSourceWithCancellation`1+<>c[System.Nullable`1[int]]>
-;* V17 tmp10 [V17 ] ( 0, 0 ) struct (16) zero-ref multireg-ret "Inline return value spill temp" <System.Threading.CancellationTokenRegistration>
-; V18 tmp11 [V18,T20] ( 3, 3 ) ref -> rdx class-hnd single-def "Inline stloc first use temp" <System.Threading.CancellationTokenSource>
+; V13 tmp6 [V13,T14] ( 5, 5 ) ref -> rsi
+; V14 tmp7 [V14,T04] ( 5, 10 ) ref -> r14 class-hnd exact single-def "NewObj constructor temp" <System.Action`2[System.Object,System.Threading.CancellationToken]>
+; V15 tmp8 [V15,T34] ( 2, 0 ) ref -> rsi class-hnd single-def "impSpillSpecialSideEff" <System.Exception>
+;* V16 tmp9 [V16 ] ( 0, 0 ) struct (16) zero-ref multireg-ret "Inline return value spill temp" <System.Threading.CancellationTokenRegistration>
+; V17 tmp10 [V17,T21] ( 3, 3 ) ref -> rdx class-hnd single-def "Inline stloc first use temp" <System.Threading.CancellationTokenSource>
+;* V18 tmp11 [V18 ] ( 0, 0 ) ref -> zero-ref
;* V19 tmp12 [V19 ] ( 0, 0 ) ref -> zero-ref
;* V20 tmp13 [V20 ] ( 0, 0 ) ref -> zero-ref
;* V21 tmp14 [V21 ] ( 0, 0 ) ref -> zero-ref
;* V22 tmp15 [V22 ] ( 0, 0 ) ref -> zero-ref
;* V23 tmp16 [V23 ] ( 0, 0 ) ref -> zero-ref
;* V24 tmp17 [V24 ] ( 0, 0 ) ref -> zero-ref
;* V25 tmp18 [V25 ] ( 0, 0 ) ref -> zero-ref
;* V26 tmp19 [V26 ] ( 0, 0 ) ref -> zero-ref
;* V27 tmp20 [V27 ] ( 0, 0 ) ref -> zero-ref
;* V28 tmp21 [V28 ] ( 0, 0 ) ref -> zero-ref
;* V29 tmp22 [V29 ] ( 0, 0 ) ref -> zero-ref
;* V30 tmp23 [V30 ] ( 0, 0 ) ref -> zero-ref
;* V31 tmp24 [V31 ] ( 0, 0 ) ref -> zero-ref
;* V32 tmp25 [V32 ] ( 0, 0 ) ref -> zero-ref
;* V33 tmp26 [V33 ] ( 0, 0 ) ref -> zero-ref
-;* V34 tmp27 [V34 ] ( 0, 0 ) ref -> zero-ref
-;* V35 tmp28 [V35 ] ( 0, 0 ) struct (16) zero-ref do-not-enreg[SBR] multireg-ret "Return value temp for multireg return" <System.Threading.CancellationTokenRegistration>
-;* V36 tmp29 [V36 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inline ldloca(s) first use temp" <System.Threading.CancellationTokenRegistration>
-; V37 tmp30 [V37,T08] ( 3, 6 ) ref -> rsi class-hnd single-def "Inlining Arg" <System.Threading.Tasks.Task`1[System.Nullable`1[int]]>
-;* V38 tmp31 [V38 ] ( 0, 0 ) ref -> zero-ref
-;* V39 tmp32 [V39 ] ( 0, 0 ) ref -> zero-ref single-def
-;* V40 tmp33 [V40 ] ( 0, 0 ) int -> zero-ref
-;* V41 tmp34 [V41 ] ( 0, 0 ) struct (16) zero-ref do-not-enreg[S] ld-addr-op "NewObj constructor temp" <System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1[System.Nullable`1[int]]>
-;* V42 tmp35 [V42 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "NewObj constructor temp" <System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[System.Nullable`1[int]]>
-;* V43 tmp36 [V43,T28] ( 0, 0 ) ubyte -> zero-ref "Inline return value spill temp"
-; V44 tmp37 [V44,T16] ( 2, 4 ) ref -> rsi class-hnd single-def "Inlining Arg" <System.Threading.Tasks.Task`1[System.Nullable`1[int]]>
-;* V45 tmp38 [V45 ] ( 0, 0 ) int -> zero-ref "Inlining Arg"
+;* V34 tmp27 [V34 ] ( 0, 0 ) struct (16) zero-ref do-not-enreg[SBR] multireg-ret "Return value temp for multireg return" <System.Threading.CancellationTokenRegistration>
+;* V35 tmp28 [V35 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "Inline ldloca(s) first use temp" <System.Threading.CancellationTokenRegistration>
+; V36 tmp29 [V36,T09] ( 3, 6 ) ref -> rsi class-hnd single-def "Inlining Arg" <System.Threading.Tasks.Task`1[System.Nullable`1[int]]>
+;* V37 tmp30 [V37 ] ( 0, 0 ) ref -> zero-ref
+;* V38 tmp31 [V38 ] ( 0, 0 ) ref -> zero-ref single-def
+;* V39 tmp32 [V39 ] ( 0, 0 ) int -> zero-ref
+;* V40 tmp33 [V40 ] ( 0, 0 ) struct (16) zero-ref do-not-enreg[S] ld-addr-op "NewObj constructor temp" <System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1[System.Nullable`1[int]]>
+;* V41 tmp34 [V41 ] ( 0, 0 ) struct (16) zero-ref ld-addr-op "NewObj constructor temp" <System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[System.Nullable`1[int]]>
+;* V42 tmp35 [V42,T31] ( 0, 0 ) ubyte -> zero-ref "Inline return value spill temp"
+; V43 tmp36 [V43,T17] ( 2, 4 ) ref -> rsi class-hnd single-def "Inlining Arg" <System.Threading.Tasks.Task`1[System.Nullable`1[int]]>
+;* V44 tmp37 [V44 ] ( 0, 0 ) int -> zero-ref "Inlining Arg"
+;* V45 tmp38 [V45 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
;* V46 tmp39 [V46 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
-;* V47 tmp40 [V47 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
-;* V48 tmp41 [V48 ] ( 0, 0 ) ref -> zero-ref class-hnd "Inline stloc first use temp" <System.Runtime.CompilerServices.IAsyncStateMachineBox>
-; V49 tmp42 [V49,T09] ( 3, 6 ) ref -> rsi class-hnd single-def "Inlining Arg" <System.Threading.Tasks.Task`1[System.Nullable`1[int]]>
-; V50 tmp43 [V50,T10] ( 3, 6 ) ref -> rsi class-hnd single-def "Inlining Arg" <System.Threading.Tasks.Task`1[System.Nullable`1[int]]>
-; V51 tmp44 [V51,T01] ( 8, 16 ) byref -> r14 "Inlining Arg"
-; V52 tmp45 [V52,T02] ( 14, 14 ) ref -> registers class-hnd exact "Inline stloc first use temp" <System.Threading.CancellationTokenSource+CallbackNode>
-; V53 tmp46 [V53,T07] ( 6, 6 ) ref -> rax class-hnd "Inline stloc first use temp" <System.Threading.CancellationTokenSource>
-;* V54 tmp47 [V54 ] ( 0, 0 ) int -> zero-ref "non-inline candidate call"
-; V55 tmp48 [V55,T05] ( 4, 8 ) long -> r12 "Inlining Arg"
-; V56 tmp49 [V56,T04] ( 5, 10 ) byref -> r13 single-def "Inlining Arg"
-; V57 tmp50 [V57,T24] ( 3, 3 ) ubyte -> rbx "field V03.hasValue (fldOffset=0x0)" P-INDEP
-; V58 tmp51 [V58,T25] ( 3, 3 ) int -> r15 "field V03.value (fldOffset=0x4)" P-INDEP
-; V59 tmp52 [V59 ] ( 7, 7 ) ref -> [rbp-0x40] do-not-enreg[X] addr-exposed "field V04.m_task (fldOffset=0x0)" P-DEP
-; V60 tmp53 [V60 ] ( 5, 5 ) int -> [rbp-0x38] do-not-enreg[X] addr-exposed "field V04.m_options (fldOffset=0x8)" P-DEP
-; V61 tmp54 [V61,T21] ( 3, 3 ) ref -> rax single-def "field V17._node (fldOffset=0x0)" P-INDEP
-; V62 tmp55 [V62,T26] ( 3, 3 ) long -> r15 "field V17._id (fldOffset=0x8)" P-INDEP
-;* V63 tmp56 [V63 ] ( 0, 0 ) ref -> zero-ref "field V35._node (fldOffset=0x0)" P-DEP
-;* V64 tmp57 [V64 ] ( 0, 0 ) long -> zero-ref "field V35._id (fldOffset=0x8)" P-DEP
-;* V65 tmp58 [V65 ] ( 0, 0 ) ref -> zero-ref single-def "field V36._node (fldOffset=0x0)" P-INDEP
-;* V66 tmp59 [V66 ] ( 0, 0 ) long -> zero-ref "field V36._id (fldOffset=0x8)" P-INDEP
-; V67 tmp60 [V67,T27] ( 2, 2 ) ref -> rsi single-def "field V42.m_task (fldOffset=0x0)" P-INDEP
-;* V68 tmp61 [V68,T29] ( 0, 0 ) int -> zero-ref "field V42.m_options (fldOffset=0x8)" P-INDEP
-; V69 tmp62 [V69,T11] ( 3, 6 ) struct ( 8) [rbp-0x48] do-not-enreg[SF] "by-value struct argument" <System.Nullable`1[int]>
-; V70 tmp63 [V70,T17] ( 2, 4 ) ref -> rdi single-def "argument with side effect"
-; V71 tmp64 [V71,T18] ( 2, 4 ) ref -> rsi single-def "argument with side effect"
-; V72 PSPSym [V72,T30] ( 1, 1 ) long -> [rbp-0x60] do-not-enreg[V] "PSPSym"
-; V73 cse0 [V73,T22] ( 3, 3 ) byref -> rsi "CSE #02: moderate"
-; V74 cse1 [V74,T23] ( 3, 3 ) ref -> rdi "CSE #05: moderate"
+;* V47 tmp40 [V47 ] ( 0, 0 ) ref -> zero-ref class-hnd "Inline stloc first use temp" <System.Runtime.CompilerServices.IAsyncStateMachineBox>
+; V48 tmp41 [V48,T10] ( 3, 6 ) ref -> rsi class-hnd single-def "Inlining Arg" <System.Threading.Tasks.Task`1[System.Nullable`1[int]]>
+; V49 tmp42 [V49,T11] ( 3, 6 ) ref -> rsi class-hnd single-def "Inlining Arg" <System.Threading.Tasks.Task`1[System.Nullable`1[int]]>
+; V50 tmp43 [V50,T01] ( 8, 16 ) byref -> r14 "Inlining Arg"
+; V51 tmp44 [V51,T02] ( 14, 14 ) ref -> registers class-hnd exact "Inline stloc first use temp" <System.Threading.CancellationTokenSource+CallbackNode>
+; V52 tmp45 [V52,T08] ( 6, 6 ) ref -> rax class-hnd "Inline stloc first use temp" <System.Threading.CancellationTokenSource>
+;* V53 tmp46 [V53 ] ( 0, 0 ) int -> zero-ref "non-inline candidate call"
+; V54 tmp47 [V54,T06] ( 4, 8 ) long -> r12 "Inlining Arg"
+; V55 tmp48 [V55,T05] ( 5, 10 ) byref -> r13 single-def "Inlining Arg"
+; V56 tmp49 [V56,T12] ( 3, 6 ) ref -> r14 class-hnd single-def "Inlining Arg" <System.Threading.Tasks.Task`1[System.Nullable`1[int]]>
+; V57 tmp50 [V57,T03] ( 6, 12 ) ref -> r13 class-hnd exact single-def "impAppendStmt" <System.Threading.Tasks.TplEventSource>
+;* V58 tmp51 [V58 ] ( 0, 0 ) ref -> zero-ref class-hnd exact "Inlining Arg" <System.Threading.Tasks.TplEventSource>
+; V59 tmp52 [V59,T19] ( 2, 4 ) int -> r12 "Inlining Arg"
+;* V60 tmp53 [V60 ] ( 0, 0 ) ubyte -> zero-ref "Inline return value spill temp"
+; V61 tmp54 [V61,T26] ( 3, 3 ) ubyte -> rbx "field V03.hasValue (fldOffset=0x0)" P-INDEP
+; V62 tmp55 [V62,T27] ( 3, 3 ) int -> r15 "field V03.value (fldOffset=0x4)" P-INDEP
+; V63 tmp56 [V63 ] ( 7, 7 ) ref -> [rbp-0x40] do-not-enreg[X] addr-exposed "field V04.m_task (fldOffset=0x0)" P-DEP
+; V64 tmp57 [V64 ] ( 5, 5 ) int -> [rbp-0x38] do-not-enreg[X] addr-exposed "field V04.m_options (fldOffset=0x8)" P-DEP
+; V65 tmp58 [V65,T22] ( 3, 3 ) ref -> rax single-def "field V16._node (fldOffset=0x0)" P-INDEP
+; V66 tmp59 [V66,T28] ( 3, 3 ) long -> r15 "field V16._id (fldOffset=0x8)" P-INDEP
+;* V67 tmp60 [V67 ] ( 0, 0 ) ref -> zero-ref "field V34._node (fldOffset=0x0)" P-DEP
+;* V68 tmp61 [V68 ] ( 0, 0 ) long -> zero-ref "field V34._id (fldOffset=0x8)" P-DEP
+;* V69 tmp62 [V69 ] ( 0, 0 ) ref -> zero-ref single-def "field V35._node (fldOffset=0x0)" P-INDEP
+;* V70 tmp63 [V70 ] ( 0, 0 ) long -> zero-ref "field V35._id (fldOffset=0x8)" P-INDEP
+; V71 tmp64 [V71,T30] ( 2, 2 ) ref -> rsi single-def "field V41.m_task (fldOffset=0x0)" P-INDEP
+;* V72 tmp65 [V72,T32] ( 0, 0 ) int -> zero-ref "field V41.m_options (fldOffset=0x8)" P-INDEP
+; V73 tmp66 [V73,T13] ( 3, 6 ) struct ( 8) [rbp-0x48] do-not-enreg[SF] "by-value struct argument" <System.Nullable`1[int]>
+; V74 tmp67 [V74,T18] ( 2, 4 ) ref -> rsi single-def "argument with side effect"
+; V75 PSPSym [V75,T33] ( 1, 1 ) long -> [rbp-0x58] do-not-enreg[V] "PSPSym"
+; V76 cse0 [V76,T23] ( 3, 3 ) ref -> r13 "CSE #10: moderate"
+; V77 cse1 [V77,T29] ( 3, 3 ) int -> rsi "CSE #11: moderate"
+; V78 cse2 [V78,T24] ( 3, 3 ) byref -> rsi "CSE #02: moderate"
+; V79 cse3 [V79,T25] ( 3, 3 ) ref -> r14 "CSE #05: moderate"
;
; Lcl frame size = 56
G_M38844_IG01:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 56
lea rbp, [rsp+0x60]
xor eax, eax
mov qword ptr [rbp-0x40], rax
- mov qword ptr [rbp-0x60], rsp
+ mov qword ptr [rbp-0x58], rsp
mov bword ptr [rbp-0x50], rdi
;; size=33 bbWeight=1 PerfScore 10.00
G_M38844_IG02:
mov eax, dword ptr [rdi+0x08]
mov dword ptr [rbp-0x2C], eax
mov rbx, gword ptr [rdi]
;; size=9 bbWeight=1 PerfScore 5.00
G_M38844_IG03:
cmp dword ptr [rbp-0x2C], 0
je G_M38844_IG07
lea r15, bword ptr [rdi+0x20]
mov rax, 0xD1FFAB1E ; data for System.Threading.Tasks.TaskCompletionSourceWithCancellation`1+<>c[System.Nullable`1[int]]:<>9__1_0
mov rsi, gword ptr [rax]
test rsi, rsi
jne SHORT G_M38844_IG04
mov rdi, 0xD1FFAB1E ; System.Action`2[System.Object,System.Threading.CancellationToken]
call CORINFO_HELP_NEWSFAST
mov r14, rax
mov rdi, 0xD1FFAB1E ; const ptr
mov rsi, gword ptr [rdi]
lea rdi, bword ptr [r14+0x08]
call CORINFO_HELP_ASSIGN_REF
mov rdi, 0xD1FFAB1E ; code for System.Threading.Tasks.TaskCompletionSourceWithCancellation`1+<>c[System.Nullable`1[int]]:<WaitWithCancellationAsync>b__1_0(System.Object,System.Threading.CancellationToken):this
mov qword ptr [r14+0x18], rdi
mov rdi, 0xD1FFAB1E ; data for System.Threading.Tasks.TaskCompletionSourceWithCancellation`1+<>c[System.Nullable`1[int]]:<>9__1_0
mov rsi, r14
call CORINFO_HELP_ASSIGN_REF
mov rsi, r14
;; size=107 bbWeight=1 PerfScore 15.25
G_M38844_IG04:
test rsi, rsi
je G_M38844_IG18
mov rdx, gword ptr [r15]
test rdx, rdx
je SHORT G_M38844_IG05
mov rdi, rdx
mov rdx, rbx
xor rcx, rcx
xor r8, r8
mov rax, 0xD1FFAB1E ; code for System.Threading.CancellationTokenSource:Register(System.Delegate,System.Object,System.Threading.SynchronizationContext,System.Threading.ExecutionContext):System.Threading.CancellationTokenRegistration:this
call [rax]System.Threading.CancellationTokenSource:Register(System.Delegate,System.Object,System.Threading.SynchronizationContext,System.Threading.ExecutionContext):System.Threading.CancellationTokenRegistration:this
mov r15, rdx
jmp SHORT G_M38844_IG06
;; size=45 bbWeight=1 PerfScore 11.00
G_M38844_IG05:
xor rax, rax
xor r15d, r15d
;; size=5 bbWeight=1 PerfScore 0.50
G_M38844_IG06:
mov rdi, bword ptr [rbp-0x50]
lea rdi, bword ptr [rdi+0x28]
mov rsi, rax
call CORINFO_HELP_CHECKED_ASSIGN_REF
mov rdi, bword ptr [rbp-0x50]
mov qword ptr [rdi+0x30], r15
;; size=24 bbWeight=1 PerfScore 4.75
G_M38844_IG07:
cmp dword ptr [rbp-0x2C], 0
jne SHORT G_M38844_IG12
lea rsi, bword ptr [rdi+0x38]
;; size=10 bbWeight=1 PerfScore 3.50
G_M38844_IG08:
vmovdqu xmm0, xmmword ptr [rsi]
vmovdqu xmmword ptr [rbp-0x40], xmm0
;; size=9 bbWeight=1 PerfScore 5.00
G_M38844_IG09:
xor eax, eax
mov qword ptr [rsi], rax
mov qword ptr [rsi+0x08], rax
mov dword ptr [rbp-0x2C], -1
mov dword ptr [rdi+0x08], -1
;; size=23 bbWeight=1 PerfScore 4.25
G_M38844_IG10:
mov rsi, gword ptr [rbp-0x40]
mov eax, dword ptr [rsi+0x34]
and eax, 0xD1FFAB1E
cmp eax, 0xD1FFAB1E
je SHORT G_M38844_IG11
mov rdi, rsi
xor esi, esi
mov rax, 0xD1FFAB1E ; code for System.Runtime.CompilerServices.TaskAwaiter:HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task,int)
call [rax]System.Runtime.CompilerServices.TaskAwaiter:HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task,int)
;; size=36 bbWeight=1 PerfScore 8.25
G_M38844_IG11:
mov rsi, gword ptr [rbp-0x40]
movzx rbx, byte ptr [rsi+0x38]
mov r15d, dword ptr [rsi+0x3C]
jmp SHORT G_M38844_IG15
;; size=14 bbWeight=1 PerfScore 7.00
G_M38844_IG12:
mov rsi, gword ptr [rbx+0x08]
cmp byte ptr [rsi], sil
mov gword ptr [rbp-0x40], rsi
xor esi, esi
mov dword ptr [rbp-0x38], esi
test byte ptr [rbp-0x38], 4
jne SHORT G_M38844_IG13
mov rsi, gword ptr [rbp-0x40]
test dword ptr [rsi+0x34], 0xD1FFAB1E
jne SHORT G_M38844_IG10
;; size=35 bbWeight=1 PerfScore 15.25
G_M38844_IG13:
xor esi, esi
mov dword ptr [rbp-0x2C], esi
;; size=5 bbWeight=1 PerfScore 1.25
G_M38844_IG14:
mov dword ptr [rdi+0x08], esi
lea rdi, bword ptr [rdi+0x38]
mov rsi, gword ptr [rbp-0x40]
call CORINFO_HELP_CHECKED_ASSIGN_REF
mov esi, dword ptr [rbp-0x38]
mov r13, bword ptr [rbp-0x50]
mov dword ptr [r13+0x40], esi
lea rsi, bword ptr [r13+0x10]
mov rdi, r13
mov rax, 0xD1FFAB1E ; code for System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[System.Nullable`1[int]]:GetStateMachineBox[System.Threading.Tasks.TaskCompletionSourceWithCancellation`1+<WaitWithCancellationAsync>d__1[System.Nullable`1[int]]](byref,byref):System.Runtime.CompilerServices.IAsyncStateMachineBox
call [rax]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[System.Nullable`1[int]]:GetStateMachineBox[System.Threading.Tasks.TaskCompletionSourceWithCancellation`1+<WaitWithCancellationAsync>d__1[System.Nullable`1[int]]](byref,byref):System.Runtime.CompilerServices.IAsyncStateMachineBox
mov rsi, rax
lea rdi, [rbp-0x40]
mov rax, 0xD1FFAB1E ; code for System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[System.Nullable`1[int]]:AwaitUnsafeOnCompleted[System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[System.Nullable`1[int]]](byref,System.Runtime.CompilerServices.IAsyncStateMachineBox)
call [rax]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[System.Nullable`1[int]]:AwaitUnsafeOnCompleted[System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[System.Nullable`1[int]]](byref,System.Runtime.CompilerServices.IAsyncStateMachineBox)
jmp SHORT G_M38844_IG16
;; size=67 bbWeight=1 PerfScore 16.50
G_M38844_IG15:
cmp dword ptr [rbp-0x2C], 0
jge G_M38844_IG19
mov rdi, bword ptr [rbp-0x50]
lea r14, bword ptr [rdi+0x28]
mov r13, gword ptr [r14]
test r13, r13
je G_M38844_IG19
mov rdi, gword ptr [r13+0x08]
mov rsi, qword ptr [r14+0x08]
mov rdx, r13
mov rax, 0xD1FFAB1E ; code for System.Threading.CancellationTokenSource+Registrations:Unregister(long,System.Threading.CancellationTokenSource+CallbackNode):ubyte:this
cmp dword ptr [rdi], edi
call [rax]System.Threading.CancellationTokenSource+Registrations:Unregister(long,System.Threading.CancellationTokenSource+CallbackNode):ubyte:this
test eax, eax
jne SHORT G_M38844_IG19
mov r12, qword ptr [r14+0x08]
mov rax, gword ptr [r13+0x08]
mov rax, gword ptr [rax+0x08]
cmp dword ptr [rax+0x20], 0
je SHORT G_M38844_IG19
cmp dword ptr [rax+0x20], 2
je SHORT G_M38844_IG19
mov rax, gword ptr [r13+0x08]
mov r14d, dword ptr [rax+0x30]
call System.Environment:get_CurrentManagedThreadId():int
cmp r14d, eax
je SHORT G_M38844_IG19
mov rdi, gword ptr [r13+0x08]
mov rsi, r12
mov rax, 0xD1FFAB1E ; code for System.Threading.CancellationTokenSource+Registrations:WaitForCallbackToComplete(long):this
cmp dword ptr [rdi], edi
call [rax]System.Threading.CancellationTokenSource+Registrations:WaitForCallbackToComplete(long):this
jmp SHORT G_M38844_IG19
;; size=124 bbWeight=1 PerfScore 50.25
G_M38844_IG16:
mov rdi, rsp
;; size=3 bbWeight=1 PerfScore 0.25
G_M38844_IG17:
- call G_M38844_IG25
- jmp G_M38844_IG22
+ call G_M38844_IG29
+ jmp G_M38844_IG24
;; size=10 bbWeight=1 PerfScore 3.00
G_M38844_IG18:
mov edi, 0x9D7
mov rsi, 0xD1FFAB1E
call CORINFO_HELP_STRCNS
mov rdi, rax
mov rax, 0xD1FFAB1E ; code for System.ArgumentNullException:Throw(System.String)
call [rax]System.ArgumentNullException:Throw(System.String)
int3
;; size=36 bbWeight=0 PerfScore 0.00
G_M38844_IG19:
mov rdi, bword ptr [rbp-0x50]
mov dword ptr [rdi+0x08], -2
lea r13, bword ptr [rdi+0x10]
- mov rdi, gword ptr [r13]
- test rdi, rdi
- je SHORT G_M38844_IG20
+ mov r14, gword ptr [r13]
+ test r14, r14
+ je G_M38844_IG22
+ mov rdi, 0xD1FFAB1E ; global ptr
+ test byte ptr [rdi], 1
+ je G_M38844_IG26
+ ;; size=47 bbWeight=1 PerfScore 10.00
+G_M38844_IG20:
+ mov rdi, 0xD1FFAB1E ; data for System.Threading.Tasks.TplEventSource:Log
+ mov r13, gword ptr [rdi]
+ cmp byte ptr [r13+0x9D], 0
+ je SHORT G_M38844_IG21
+ mov rdi, r14
+ mov rax, 0xD1FFAB1E ; code for System.Threading.Tasks.Task:get_Id():int:this
+ cmp dword ptr [rdi], edi
+ call [rax]System.Threading.Tasks.Task:get_Id():int:this
+ mov r12d, eax
+ movzx rsi, byte ptr [r13+0x9D]
+ test esi, esi
+ je SHORT G_M38844_IG21
+ xor ecx, ecx
+ mov dword ptr [rsp], ecx
+ mov rcx, qword ptr [r13+0x80]
+ mov edx, dword ptr [r13+0x98]
+ mov rdi, r13
+ mov r8d, 4
+ mov r9d, 8
+ mov rax, 0xD1FFAB1E ; code for System.Diagnostics.Tracing.EventSource:IsEnabledCommon(ubyte,int,long,int,long,ubyte):ubyte:this
+ call [rax]System.Diagnostics.Tracing.EventSource:IsEnabledCommon(ubyte,int,long,int,long,ubyte):ubyte:this
+ test eax, eax
+ je SHORT G_M38844_IG21
+ mov rdi, r13
+ mov edx, r12d
+ mov esi, 15
+ mov ecx, 1
+ mov rax, 0xD1FFAB1E ; code for System.Diagnostics.Tracing.EventSource:WriteEvent(int,int,int):this
+ call [rax]System.Diagnostics.Tracing.EventSource:WriteEvent(int,int,int):this
+ ;; size=133 bbWeight=1 PerfScore 31.00
+G_M38844_IG21:
mov byte ptr [rbp-0x48], bl
mov dword ptr [rbp-0x44], r15d
mov rsi, qword ptr [rbp-0x48]
- mov rax, 0xD1FFAB1E ; code for System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[System.Nullable`1[int]]:SetExistingTaskResult(System.Threading.Tasks.Task`1[System.Nullable`1[int]],System.Nullable`1[int])
- call [rax]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[System.Nullable`1[int]]:SetExistingTaskResult(System.Threading.Tasks.Task`1[System.Nullable`1[int]],System.Nullable`1[int])
- jmp SHORT G_M38844_IG22
- ;; size=49 bbWeight=1 PerfScore 14.00
-G_M38844_IG20:
+ mov rdi, r14
+ mov rax, 0xD1FFAB1E ; code for System.Threading.Tasks.Task`1[System.Nullable`1[int]]:TrySetResult(System.Nullable`1[int]):ubyte:this
+ cmp dword ptr [rdi], edi
+ call [rax]System.Threading.Tasks.Task`1[System.Nullable`1[int]]:TrySetResult(System.Nullable`1[int]):ubyte:this
+ test eax, eax
+ jne SHORT G_M38844_IG24
+ jmp SHORT G_M38844_IG27
+ ;; size=34 bbWeight=1 PerfScore 12.75
+G_M38844_IG22:
mov byte ptr [r13+0x08], bl
mov dword ptr [r13+0x0C], r15d
mov rdi, 0xD1FFAB1E ; global ptr
test byte ptr [rdi], 1
- je SHORT G_M38844_IG24
+ je SHORT G_M38844_IG28
;; size=23 bbWeight=1 PerfScore 6.25
-G_M38844_IG21:
+G_M38844_IG23:
mov rdi, 0xD1FFAB1E ; data for System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1[System.Nullable`1[int]]:s_syncSuccessSentinel
mov rsi, gword ptr [rdi]
mov rdi, r13
call CORINFO_HELP_CHECKED_ASSIGN_REF
;; size=21 bbWeight=1 PerfScore 3.50
-G_M38844_IG22:
+G_M38844_IG24:
nop
;; size=1 bbWeight=1 PerfScore 0.25
-G_M38844_IG23:
+G_M38844_IG25:
add rsp, 56
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
;; size=15 bbWeight=1 PerfScore 4.25
-G_M38844_IG24:
+G_M38844_IG26:
+ mov rdi, 0xD1FFAB1E ; System.Threading.Tasks.TplEventSource
+ call CORINFO_HELP_GET_GCSTATIC_BASE
+ jmp G_M38844_IG20
+ ;; size=20 bbWeight=0 PerfScore 0.00
+G_M38844_IG27:
+ mov edi, 24
+ mov rax, 0xD1FFAB1E ; code for System.ThrowHelper:ThrowInvalidOperationException(int)
+ call [rax]System.ThrowHelper:ThrowInvalidOperationException(int)
+ int3
+ ;; size=18 bbWeight=0 PerfScore 0.00
+G_M38844_IG28:
mov rdi, 0xD1FFAB1E ; System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1[System.Nullable`1[int]]
call CORINFO_HELP_GET_GCSTATIC_BASE
- jmp SHORT G_M38844_IG21
+ jmp SHORT G_M38844_IG23
;; size=17 bbWeight=0 PerfScore 0.00
-G_M38844_IG25:
+G_M38844_IG29:
push rbp
push r15
push r14
push r13
push r12
push rbx
- push rax
- mov rbp, qword ptr [rdi]
- mov qword ptr [rsp], rbp
+ sub rsp, 24
+ mov rbp, qword ptr [rdi+0x08]
+ mov qword ptr [rsp+0x08], rbp
lea rbp, [rbp+0x60]
- ;; size=22 bbWeight=1 PerfScore 10.50
-G_M38844_IG26:
+ ;; size=27 bbWeight=1 PerfScore 9.75
+G_M38844_IG30:
cmp dword ptr [rbp-0x2C], 0
- jge SHORT G_M38844_IG27
+ jge SHORT G_M38844_IG31
mov r13, bword ptr [rbp-0x50]
lea r14, bword ptr [r13+0x28]
mov rdi, gword ptr [r14]
mov rbx, rdi
test rbx, rbx
- je SHORT G_M38844_IG27
+ je SHORT G_M38844_IG31
mov rdi, gword ptr [rbx+0x08]
mov rsi, qword ptr [r14+0x08]
mov rdx, rbx
mov rax, 0xD1FFAB1E ; code for System.Threading.CancellationTokenSource+Registrations:Unregister(long,System.Threading.CancellationTokenSource+CallbackNode):ubyte:this
cmp dword ptr [rdi], edi
call [rax]System.Threading.CancellationTokenSource+Registrations:Unregister(long,System.Threading.CancellationTokenSource+CallbackNode):ubyte:this
test eax, eax
- jne SHORT G_M38844_IG27
+ jne SHORT G_M38844_IG31
mov r12, qword ptr [r14+0x08]
mov rax, gword ptr [rbx+0x08]
mov rax, gword ptr [rax+0x08]
cmp dword ptr [rax+0x20], 0
- je SHORT G_M38844_IG27
+ je SHORT G_M38844_IG31
cmp dword ptr [rax+0x20], 2
- je SHORT G_M38844_IG27
+ je SHORT G_M38844_IG31
mov rax, gword ptr [rbx+0x08]
mov r15d, dword ptr [rax+0x30]
call System.Environment:get_CurrentManagedThreadId():int
cmp r15d, eax
- je SHORT G_M38844_IG27
+ je SHORT G_M38844_IG31
mov rdi, gword ptr [rbx+0x08]
mov rsi, r12
mov rax, 0xD1FFAB1E ; code for System.Threading.CancellationTokenSource+Registrations:WaitForCallbackToComplete(long):this
cmp dword ptr [rdi], edi
call [rax]System.Threading.CancellationTokenSource+Registrations:WaitForCallbackToComplete(long):this
;; size=117 bbWeight=1 PerfScore 48.50
-G_M38844_IG27:
+G_M38844_IG31:
nop
;; size=1 bbWeight=1 PerfScore 0.25
-G_M38844_IG28:
- add rsp, 8
+G_M38844_IG32:
+ add rsp, 24
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
;; size=15 bbWeight=1 PerfScore 4.25
-G_M38844_IG29:
+G_M38844_IG33:
push rbp
push r15
push r14
push r13
push r12
push rbx
- push rax
- mov rbp, qword ptr [rdi]
- mov qword ptr [rsp], rbp
+ sub rsp, 24
+ mov rbp, qword ptr [rdi+0x08]
+ mov qword ptr [rsp+0x08], rbp
lea rbp, [rbp+0x60]
- ;; size=22 bbWeight=0 PerfScore 0.00
-G_M38844_IG30:
+ ;; size=27 bbWeight=0 PerfScore 0.00
+G_M38844_IG34:
mov r13, bword ptr [rbp-0x50]
mov dword ptr [r13+0x08], -2
lea rdi, bword ptr [r13+0x10]
mov rax, 0xD1FFAB1E ; code for System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1[System.Nullable`1[int]]:SetException(System.Exception):this
call [rax]System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1[System.Nullable`1[int]]:SetException(System.Exception):this
- lea rax, G_M38844_IG22
+ lea rax, G_M38844_IG24
;; size=35 bbWeight=0 PerfScore 0.00
-G_M38844_IG31:
- add rsp, 8
+G_M38844_IG35:
+ add rsp, 24
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
;; size=15 bbWeight=0 PerfScore 0.00
-; Total bytes of code 948, prolog size 33, PerfScore 252.75, instruction count 259, allocated bytes for code 948 (MethodHash=77d76843) for method System.Threading.Tasks.TaskCompletionSourceWithCancellation`1+<WaitWithCancellationAsync>d__1[System.Nullable`1[int]]:MoveNext():this (FullOpts)
+; Total bytes of code 1161, prolog size 33, PerfScore 291.75, instruction count 302, allocated bytes for code 1161 (MethodHash=77d76843) for method System.Threading.Tasks.TaskCompletionSourceWithCancellation`1+<WaitWithCancellationAsync>d__1[System.Nullable`1[int]]:MoveNext():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/76718601d73cd9d6427e35b0b383fdc3 |
Top method improvements-162 (-21.74 % of base) - System.Net.Security.SslSessionsCache:g__ShrinkCredentialCache|5_0() ; Assembly listing for method System.Net.Security.SslSessionsCache:<CacheCredential>g__ShrinkCredentialCache|5_0() (FullOpts)
; Emitting BLENDED_CODE for X64 with AVX - Unix
; FullOpts code
; optimized code
; rbp based frame
; partially interruptible
; No PGO data
; 0 inlinees with PGO data; 15 single block inlinees; 9 inlinees without PGO data
; Final local variable assignments
;
-; V00 loc0 [V00,T21] ( 3, 1.25) ref -> rax class-hnd single-def <System.Collections.Generic.KeyValuePair`2[System.Net.Security.SslSessionsCache+SslCredKey,System.Net.Security.SafeCredentialReference][]>
-;* V01 loc1 [V01,T30] ( 0, 0 ) int -> zero-ref
-; V02 loc2 [V02,T00] ( 8, 20 ) ref -> r13 class-hnd <System.Net.Security.SafeCredentialReference>
-; V03 loc3 [V03,T05] ( 3, 10 ) ref -> r12 class-hnd <System.Net.Security.SafeFreeCredentials>
-; V04 loc4 [V04 ] ( 2, 4 ) ref -> [rbp-0x30] do-not-enreg[X] must-init addr-exposed ld-addr-op class-hnd <System.Net.Security.SafeCredentialReference>
+; V00 loc0 [V00,T17] ( 3, 1.25) ref -> rax class-hnd single-def <System.Collections.Generic.KeyValuePair`2[System.Net.Security.SslSessionsCache+SslCredKey,System.Net.Security.SafeCredentialReference][]>
+;* V01 loc1 [V01,T26] ( 0, 0 ) int -> zero-ref
+; V02 loc2 [V02,T00] ( 7, 18 ) ref -> r13 class-hnd <System.Net.Security.SafeCredentialReference>
+; V03 loc3 [V03,T04] ( 3, 10 ) ref -> r12 class-hnd <System.Net.Security.SafeFreeCredentials>
+; V04 loc4 [V04 ] ( 1, 2 ) ref -> [rbp-0x30] do-not-enreg[X] must-init addr-exposed ld-addr-op class-hnd <System.Net.Security.SafeCredentialReference>
; V05 OutArgs [V05 ] ( 1, 1 ) struct (32) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace"
-; V06 tmp1 [V06,T11] ( 2, 8 ) struct (24) [rbp-0x48] do-not-enreg[S] must-init "spilled call-like call argument" <System.Net.Security.SslSessionsCache+SslCredKey>
-; V07 tmp2 [V07,T12] ( 2, 8 ) struct (24) [rbp-0x60] do-not-enreg[S] must-init "spilled call-like call argument" <System.Net.Security.SslSessionsCache+SslCredKey>
-; V08 tmp3 [V08,T13] ( 2, 8 ) struct (24) [rbp-0x78] do-not-enreg[S] must-init "spilled call-like call argument" <System.Net.Security.SslSessionsCache+SslCredKey>
-; V09 tmp4 [V09,T16] ( 3, 3 ) ref -> r14 class-hnd exact single-def "dup spill" <System.Object[]>
-; V10 tmp5 [V10,T17] ( 3, 3 ) ref -> r13 class-hnd exact single-def "Single-def Box Helper" <System.Int32>
+;* V06 tmp1 [V06 ] ( 0, 0 ) struct (24) zero-ref do-not-enreg[S] "spilled call-like call argument" <System.Net.Security.SslSessionsCache+SslCredKey>
+; V07 tmp2 [V07,T09] ( 2, 8 ) struct (24) [rbp-0x48] do-not-enreg[S] must-init "spilled call-like call argument" <System.Net.Security.SslSessionsCache+SslCredKey>
+;* V08 tmp3 [V08 ] ( 0, 0 ) struct (24) zero-ref do-not-enreg[S] "spilled call-like call argument" <System.Net.Security.SslSessionsCache+SslCredKey>
+; V09 tmp4 [V09,T12] ( 3, 3 ) ref -> r14 class-hnd exact single-def "dup spill" <System.Object[]>
+; V10 tmp5 [V10,T13] ( 3, 3 ) ref -> r13 class-hnd exact single-def "Single-def Box Helper" <System.Int32>
;* V11 tmp6 [V11 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
;* V12 tmp7 [V12 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
;* V13 tmp8 [V13 ] ( 0, 0 ) ubyte -> zero-ref "Inline return value spill temp"
-; V14 tmp9 [V14,T07] ( 2, 8 ) ref -> [rbp-0x90] class-hnd exact spill-single-def "Inlining Arg" <System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.Net.Security.SafeCredentialReference]>
-;* V15 tmp10 [V15 ] ( 0, 0 ) ref -> zero-ref ld-addr-op class-hnd "Inline ldloca(s) first use temp" <System.Net.Security.SafeCredentialReference>
-; V16 tmp11 [V16,T08] ( 2, 8 ) ref -> rdi class-hnd "dup spill" <System.Net.Security.SafeFreeCredentials>
-;* V17 tmp12 [V17 ] ( 0, 0 ) ref -> zero-ref
-;* V18 tmp13 [V18 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
-; V19 tmp14 [V19,T03] ( 3, 12 ) ref -> [rbp-0x98] class-hnd exact spill-single-def "Inlining Arg" <System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.Net.Security.SafeCredentialReference]>
-;* V20 tmp15 [V20 ] ( 0, 0 ) struct ( 8) zero-ref ld-addr-op "Inline ldloca(s) first use temp" <System.Nullable`1[int]>
-; V21 tmp16 [V21,T09] ( 2, 8 ) ref -> [rbp-0xA0] class-hnd exact spill-single-def "impAppendStmt" <System.Collections.Concurrent.ConcurrentDictionary`2+Tables[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]>
-; V22 tmp17 [V22 ] ( 2, 4 ) ref -> [rbp-0x80] do-not-enreg[X] must-init addr-exposed ld-addr-op class-hnd "Inline ldloca(s) first use temp" <System.Net.Security.SafeCredentialReference>
-;* V23 tmp18 [V23 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
-;* V24 tmp19 [V24 ] ( 0, 0 ) ubyte -> zero-ref "Inline return value spill temp"
-; V25 tmp20 [V25,T10] ( 2, 8 ) ref -> [rbp-0xA8] class-hnd exact spill-single-def "Inlining Arg" <System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.Net.Security.SafeCredentialReference]>
-;* V26 tmp21 [V26 ] ( 0, 0 ) ref -> zero-ref ld-addr-op class-hnd "Inline ldloca(s) first use temp" <System.Net.Security.SafeCredentialReference>
-;* V27 tmp22 [V27 ] ( 0, 0 ) ref -> zero-ref class-hnd exact "Inlining Arg" <System.Net.NetEventSource>
-; V28 tmp23 [V28,T14] ( 4, 4 ) ref -> rbx class-hnd exact single-def "NewObj constructor temp" <System.Runtime.CompilerServices.FormattableStringFactory+ConcreteFormattableString>
-; V29 tmp24 [V29,T23] ( 2, 1 ) ref -> r15 single-def
-; V30 tmp25 [V30,T24] ( 2, 1 ) ref -> r14 single-def
-;* V31 tmp26 [V31 ] ( 0, 0 ) ref -> zero-ref single-def
-; V32 tmp27 [V32,T25] ( 2, 1 ) ref -> r15 single-def
-; V33 tmp28 [V33,T26] ( 2, 1 ) ref -> r14 single-def
-;* V34 tmp29 [V34,T28] ( 0, 0 ) ref -> zero-ref single-def
-; V35 tmp30 [V35,T27] ( 2, 1 ) ref -> r8 single-def
-;* V36 tmp31 [V36 ] ( 0, 0 ) ref -> zero-ref single-def
-;* V37 tmp32 [V37 ] ( 0, 0 ) int -> zero-ref
-;* V38 tmp33 [V38 ] ( 0, 0 ) ref -> zero-ref single-def
-;* V39 tmp34 [V39,T29] ( 0, 0 ) ref -> zero-ref
-;* V40 tmp35 [V40,T18] ( 0, 0 ) ubyte -> zero-ref "field V20.hasValue (fldOffset=0x0)" P-INDEP
-;* V41 tmp36 [V41,T19] ( 0, 0 ) int -> zero-ref "field V20.value (fldOffset=0x4)" P-INDEP
-; V42 tmp37 [V42,T04] ( 3, 12 ) struct ( 8) [rbp-0x88] do-not-enreg[SF] "by-value struct argument" <System.Nullable`1[int]>
-; V43 cse0 [V43,T06] ( 7, 9 ) ref -> rbx "CSE #01: moderate"
-; V44 cse1 [V44,T20] ( 3, 1.50) ref -> r15 "CSE #07: moderate"
-;* V45 cse2 [V45,T15] ( 0, 0 ) long -> zero-ref "CSE #03: aggressive"
-; V46 cse3 [V46,T22] ( 3, 1.25) int -> r15 "CSE #06: moderate"
-; V47 rat0 [V47,T01] ( 7, 18.25) byref -> r14 "Strength reduced derived IV"
-; V48 rat1 [V48,T02] ( 4, 12.25) int -> r15 "Trip count IV"
+;* V14 tmp9 [V14 ] ( 0, 0 ) ref -> zero-ref ld-addr-op class-hnd "Inline ldloca(s) first use temp" <System.Net.Security.SafeCredentialReference>
+; V15 tmp10 [V15,T07] ( 2, 8 ) ref -> rdi class-hnd "dup spill" <System.Net.Security.SafeFreeCredentials>
+;* V16 tmp11 [V16 ] ( 0, 0 ) ref -> zero-ref
+;* V17 tmp12 [V17 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
+;* V18 tmp13 [V18 ] ( 0, 0 ) struct ( 8) zero-ref ld-addr-op "Inline ldloca(s) first use temp" <System.Nullable`1[int]>
+; V19 tmp14 [V19,T08] ( 2, 8 ) ref -> [rbp-0x60] class-hnd exact spill-single-def "impAppendStmt" <System.Collections.Concurrent.ConcurrentDictionary`2+Tables[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]>
+; V20 tmp15 [V20 ] ( 2, 4 ) ref -> [rbp-0x50] do-not-enreg[X] must-init addr-exposed ld-addr-op class-hnd "Inline ldloca(s) first use temp" <System.Net.Security.SafeCredentialReference>
+;* V21 tmp16 [V21 ] ( 0, 0 ) byref -> zero-ref "Inlining Arg"
+;* V22 tmp17 [V22 ] ( 0, 0 ) ubyte -> zero-ref "Inline return value spill temp"
+;* V23 tmp18 [V23 ] ( 0, 0 ) ref -> zero-ref ld-addr-op class-hnd "Inline ldloca(s) first use temp" <System.Net.Security.SafeCredentialReference>
+; V24 tmp19 [V24,T10] ( 4, 4 ) ref -> rbx class-hnd exact single-def "NewObj constructor temp" <System.Runtime.CompilerServices.FormattableStringFactory+ConcreteFormattableString>
+; V25 tmp20 [V25,T19] ( 2, 1 ) ref -> r15 single-def
+; V26 tmp21 [V26,T20] ( 2, 1 ) ref -> r14 single-def
+;* V27 tmp22 [V27 ] ( 0, 0 ) ref -> zero-ref single-def
+; V28 tmp23 [V28,T21] ( 2, 1 ) ref -> r15 single-def
+; V29 tmp24 [V29,T22] ( 2, 1 ) ref -> r14 single-def
+;* V30 tmp25 [V30,T24] ( 0, 0 ) ref -> zero-ref single-def
+; V31 tmp26 [V31,T23] ( 2, 1 ) ref -> r8 single-def
+;* V32 tmp27 [V32 ] ( 0, 0 ) ref -> zero-ref single-def
+;* V33 tmp28 [V33 ] ( 0, 0 ) int -> zero-ref
+;* V34 tmp29 [V34 ] ( 0, 0 ) ref -> zero-ref single-def
+;* V35 tmp30 [V35,T25] ( 0, 0 ) ref -> zero-ref
+;* V36 tmp31 [V36,T14] ( 0, 0 ) ubyte -> zero-ref "field V18.hasValue (fldOffset=0x0)" P-INDEP
+;* V37 tmp32 [V37,T15] ( 0, 0 ) int -> zero-ref "field V18.value (fldOffset=0x4)" P-INDEP
+; V38 tmp33 [V38,T03] ( 3, 12 ) struct ( 8) [rbp-0x58] do-not-enreg[SF] "by-value struct argument" <System.Nullable`1[int]>
+; V39 cse0 [V39,T06] ( 7, 9 ) ref -> rbx "CSE #01: aggressive"
+; V40 cse1 [V40,T16] ( 3, 1.50) ref -> r15 "CSE #07: moderate"
+;* V41 cse2 [V41,T11] ( 0, 0 ) long -> zero-ref "CSE #04: aggressive"
+; V42 cse3 [V42,T05] ( 3, 10 ) ref -> rdi "CSE #02: aggressive"
+; V43 cse4 [V43,T18] ( 3, 1.25) int -> r15 "CSE #06: moderate"
+; V44 rat0 [V44,T01] ( 6, 16.25) byref -> r14 "Strength reduced derived IV"
+; V45 rat1 [V45,T02] ( 4, 12.25) int -> r15 "Trip count IV"
;
-; Lcl frame size = 168
+; Lcl frame size = 88
G_M28232_IG01:
push rbp
push r15
push r14
push r13
push r12
push rbx
- sub rsp, 168
- lea rbp, [rsp+0xD0]
+ sub rsp, 88
+ lea rbp, [rsp+0x80]
vxorps xmm8, xmm8, xmm8
- vmovdqu ymmword ptr [rbp-0x80], ymm8
- vmovdqu ymmword ptr [rbp-0x60], ymm8
- vmovdqa xmmword ptr [rbp-0x40], xmm8
+ vmovdqu ymmword ptr [rbp-0x50], ymm8
xor eax, eax
mov qword ptr [rbp-0x30], rax
- ;; size=51 bbWeight=1 PerfScore 14.33
+ ;; size=38 bbWeight=1 PerfScore 10.33
G_M28232_IG02:
mov rdi, 0xD1FFAB1E ; const ptr
mov rbx, gword ptr [rdi]
mov rdi, rbx
mov rax, 0xD1FFAB1E ; code for System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:get_Count():int:this
call [rax]System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:get_Count():int:this
test al, 31
- jne G_M28232_IG15
+ jne G_M28232_IG12
;; size=36 bbWeight=1 PerfScore 7.00
G_M28232_IG03:
mov rdi, rbx
mov rax, 0xD1FFAB1E ; code for System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:ToArray():System.Collections.Generic.KeyValuePair`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon][]:this
call [rax]System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:ToArray():System.Collections.Generic.KeyValuePair`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon][]:this
mov r15d, dword ptr [rax+0x08]
test r15d, r15d
- jle G_M28232_IG14
+ jle G_M28232_IG11
;; size=28 bbWeight=0.50 PerfScore 3.38
G_M28232_IG04:
lea r14, bword ptr [rax+0x10]
;; size=4 bbWeight=0.25 PerfScore 0.12
G_M28232_IG05:
mov r13, gword ptr [r14]
- mov r12, gword ptr [r13+0x08]
- test r12, r12
- je G_M28232_IG11
- ;; size=16 bbWeight=4 PerfScore 21.00
-G_M28232_IG06:
mov rdi, gword ptr [r13+0x08]
+ mov r12, rdi
+ test r12, r12
+ je SHORT G_M28232_IG07
+ ;; size=15 bbWeight=4 PerfScore 22.00
+G_M28232_IG06:
xor esi, esi
mov rax, 0xD1FFAB1E ; code for System.Runtime.InteropServices.SafeHandle:InternalRelease(ubyte):this
call [rax]System.Runtime.InteropServices.SafeHandle:InternalRelease(ubyte):this
xor rdi, rdi
mov gword ptr [r13+0x08], rdi
mov rdi, r13
call System.GC:_SuppressFinalize(System.Object)
mov rdi, r12
mov rax, 0xD1FFAB1E ; code for System.Net.Security.SafeCredentialReference:CreateReference(System.Net.Security.SafeFreeCredentials):System.Net.Security.SafeCredentialReference
call [rax]System.Net.Security.SafeCredentialReference:CreateReference(System.Net.Security.SafeFreeCredentials):System.Net.Security.SafeCredentialReference
mov r13, rax
test r13, r13
- jne SHORT G_M28232_IG09
- ;; size=55 bbWeight=2 PerfScore 26.00
+ jne SHORT G_M28232_IG08
+ ;; size=51 bbWeight=2 PerfScore 22.00
G_M28232_IG07:
+ lea rdx, bword ptr [r14+0x08]
+ lea rdi, [rsp]
+ mov rsi, rdx
+ mov rcx, gword ptr [rsi]
+ mov gword ptr [rsp], rcx
+ add rsi, 8
+ add rdi, 8
+ movsq
+ movsq
+ mov rdi, rbx
+ lea rsi, [rbp-0x30]
+ xor edx, edx
+ xor rcx, rcx
+ mov rax, 0xD1FFAB1E ; code for System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:TryRemoveInternal(System.Net.Security.SslSessionsCache+SslCredKey,byref,ubyte,System.__Canon):ubyte:this
+ call [rax]System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:TryRemoveInternal(System.Net.Security.SslSessionsCache+SslCredKey,byref,ubyte,System.__Canon):ubyte:this
+ jmp SHORT G_M28232_IG10
+ ;; size=55 bbWeight=2 PerfScore 26.50
+G_M28232_IG08:
vmovdqu xmm0, xmmword ptr [r14+0x08]
vmovdqu xmmword ptr [rbp-0x48], xmm0
mov rcx, qword ptr [r14+0x18]
mov qword ptr [rbp-0x38], rcx
;; size=19 bbWeight=2 PerfScore 16.00
-G_M28232_IG08:
- mov gword ptr [rbp-0xA8], rbx
+G_M28232_IG09:
+ mov rsi, gword ptr [rbx+0x08]
+ mov gword ptr [rbp-0x60], rsi
lea rdi, [rsp]
lea rsi, [rbp-0x48]
mov rcx, gword ptr [rsi]
mov gword ptr [rsp], rcx
add rsi, 8
add rdi, 8
movsq
movsq
- lea rsi, [rbp-0x30]
- mov rdi, gword ptr [rbp-0xA8]
+ mov byte ptr [rbp-0x58], 0
xor edx, edx
- xor rcx, rcx
- mov rax, 0xD1FFAB1E ; code for System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:TryRemoveInternal(System.Net.Security.SslSessionsCache+SslCredKey,byref,ubyte,System.__Canon):ubyte:this
- call [rax]System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:TryRemoveInternal(System.Net.Security.SslSessionsCache+SslCredKey,byref,ubyte,System.__Canon):ubyte:this
- jmp G_M28232_IG13
- ;; size=66 bbWeight=2 PerfScore 29.50
-G_M28232_IG09:
- vmovdqu xmm0, xmmword ptr [r14+0x08]
- vmovdqu xmmword ptr [rbp-0x60], xmm0
- mov rcx, qword ptr [r14+0x18]
- mov qword ptr [rbp-0x50], rcx
- ;; size=19 bbWeight=2 PerfScore 16.00
-G_M28232_IG10:
- mov rdi, rbx
- mov gword ptr [rbp-0x98], rdi
- mov rsi, gword ptr [rdi+0x08]
- mov gword ptr [rbp-0xA0], rsi
- lea rdi, [rsp]
- lea rsi, [rbp-0x60]
- mov rcx, gword ptr [rsi]
- mov gword ptr [rsp], rcx
- add rsi, 8
- add rdi, 8
- movsq
- movsq
- mov byte ptr [rbp-0x88], 0
- xor edx, edx
- mov dword ptr [rbp-0x84], edx
- lea rdx, [rbp-0x80]
+ mov dword ptr [rbp-0x54], edx
+ lea rdx, [rbp-0x50]
mov qword ptr [rsp+0x18], rdx
- mov rdx, qword ptr [rbp-0x88]
- mov rsi, gword ptr [rbp-0xA0]
- mov rdi, gword ptr [rbp-0x98]
+ mov rdx, qword ptr [rbp-0x58]
+ mov rdi, rbx
+ mov rsi, gword ptr [rbp-0x60]
mov rcx, r13
mov r8d, 1
mov r9d, 1
mov rax, 0xD1FFAB1E ; code for System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:TryAddInternal(System.Collections.Concurrent.ConcurrentDictionary`2+Tables[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon],System.Net.Security.SslSessionsCache+SslCredKey,System.Nullable`1[int],System.__Canon,ubyte,ubyte,byref):ubyte:this
call [rax]System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:TryAddInternal(System.Collections.Concurrent.ConcurrentDictionary`2+Tables[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon],System.Net.Security.SslSessionsCache+SslCredKey,System.Nullable`1[int],System.__Canon,ubyte,ubyte,byref):ubyte:this
- xor rcx, rcx
- mov gword ptr [rbp-0x80], rcx
- jmp SHORT G_M28232_IG13
- ;; size=128 bbWeight=2 PerfScore 49.50
-G_M28232_IG11:
- vmovdqu xmm0, xmmword ptr [r14+0x08]
- vmovdqu xmmword ptr [rbp-0x78], xmm0
- mov rcx, qword ptr [r14+0x18]
- mov qword ptr [rbp-0x68], rcx
- ;; size=19 bbWeight=2 PerfScore 16.00
-G_M28232_IG12:
- mov gword ptr [rbp-0x90], rbx
- lea rdi, [rsp]
- lea rsi, [rbp-0x78]
- mov rcx, gword ptr [rsi]
- mov gword ptr [rsp], rcx
- add rsi, 8
- add rdi, 8
- movsq
- movsq
- lea rsi, [rbp-0x30]
- mov rdi, gword ptr [rbp-0x90]
- xor edx, edx
- xor rcx, rcx
- mov rax, 0xD1FFAB1E ; code for System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:TryRemoveInternal(System.Net.Security.SslSessionsCache+SslCredKey,byref,ubyte,System.__Canon):ubyte:this
- call [rax]System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:TryRemoveInternal(System.Net.Security.SslSessionsCache+SslCredKey,byref,ubyte,System.__Canon):ubyte:this
- ;; size=61 bbWeight=2 PerfScore 25.50
-G_M28232_IG13:
+ xor rdi, rdi
+ mov gword ptr [rbp-0x50], rdi
+ ;; size=97 bbWeight=2 PerfScore 41.50
+G_M28232_IG10:
add r14, 32
dec r15d
jne G_M28232_IG05
;; size=13 bbWeight=4 PerfScore 6.00
-G_M28232_IG14:
+G_M28232_IG11:
mov rdi, 0xD1FFAB1E ; const ptr
mov r15, gword ptr [rdi]
cmp byte ptr [r15+0x9D], 0
- je G_M28232_IG15
+ je G_M28232_IG12
mov rdi, 0xD1FFAB1E ; System.Object[]
mov esi, 1
call CORINFO_HELP_NEWARR_1_OBJ
mov r14, rax
mov rdi, 0xD1FFAB1E ; System.Int32
call CORINFO_HELP_NEWSFAST
mov r13, rax
mov rdi, rbx
mov rax, 0xD1FFAB1E ; code for System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:get_Count():int:this
call [rax]System.Collections.Concurrent.ConcurrentDictionary`2[System.Net.Security.SslSessionsCache+SslCredKey,System.__Canon]:get_Count():int:this
mov dword ptr [r13+0x08], eax
lea rdi, bword ptr [r14+0x10]
mov rsi, r13
call CORINFO_HELP_ASSIGN_REF
mov rdi, 0xD1FFAB1E ; System.Runtime.CompilerServices.FormattableStringFactory+ConcreteFormattableString
call CORINFO_HELP_NEWSFAST
mov rbx, rax
mov rdi, 0xD1FFAB1E ; 'Scavenged cache, New Cache Count = {0}'
mov gword ptr [rbx+0x08], rdi
lea rdi, bword ptr [rbx+0x10]
mov rsi, r14
call CORINFO_HELP_ASSIGN_REF
xor rdi, rdi
mov rax, 0xD1FFAB1E ; code for System.Net.NetEventSource:IdOf(System.Object):System.String
call [rax]System.Net.NetEventSource:IdOf(System.Object):System.String
mov r14, rax
mov rdi, rbx
mov rax, 0xD1FFAB1E ; code for System.Net.NetEventSource:Format(System.FormattableString):System.String
call [rax]System.Net.NetEventSource:Format(System.FormattableString):System.String
mov r8, rax
mov rdi, r15
mov rdx, r14
mov rcx, 0xD1FFAB1E ; 'CacheCredential'
mov esi, 1
mov rax, 0xD1FFAB1E ; code for System.Diagnostics.Tracing.EventSource:WriteEvent(int,System.String,System.String,System.String):this
call [rax]System.Diagnostics.Tracing.EventSource:WriteEvent(int,System.String,System.String,System.String):this
;; size=211 bbWeight=0.50 PerfScore 16.00
-G_M28232_IG15:
+G_M28232_IG12:
nop
;; size=1 bbWeight=1 PerfScore 0.25
-G_M28232_IG16:
- add rsp, 168
+G_M28232_IG13:
+ add rsp, 88
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
- ;; size=18 bbWeight=1 PerfScore 4.25
+ ;; size=15 bbWeight=1 PerfScore 4.25
-; Total bytes of code 745, prolog size 51, PerfScore 250.83, instruction count 169, allocated bytes for code 745 (MethodHash=c18491b7) for method System.Net.Security.SslSessionsCache:<CacheCredential>g__ShrinkCredentialCache|5_0() (FullOpts)
+; Total bytes of code 583, prolog size 38, PerfScore 175.33, instruction count 141, allocated bytes for code 583 (MethodHash=c18491b7) for method System.Net.Security.SslSessionsCache:<CacheCredential>g__ShrinkCredentialCache|5_0() (FullOpts)
; ============================================================ -74 (-2.98 % of base) - System.Text.RegularExpressions.RegexCache:Add(System.Text.RegularExpressions.RegexCache+Key,System.Text.RegularExpressions.Regex) ; Assembly listing for method System.Text.RegularExpressions.RegexCache:Add(System.Text.RegularExpressions.RegexCache+Key,System.Text.RegularExpressions.Regex) (FullOpts)
; Emitting BLENDED_CODE for X64 with AVX - Unix
; FullOpts code
; optimized code
; rbp based frame
; fully interruptible
; No PGO data
; 0 inlinees with PGO data; 13 single block inlinees; 11 inlinees without PGO data
; Final local variable assignments
;
-; V00 arg0 [V00,T39] ( 3, 1.50) struct (32) [rbp+0x10] do-not-enreg[S] single-def <System.Text.RegularExpressions.RegexCache+Key>
-; V01 arg1 [V01,T14] ( 3, 2.50) ref -> rbx class-hnd single-def <System.Text.RegularExpressions.Regex>
-; V02 loc0 [V02,T35] ( 4, 1.50) ref -> [rbp-0x88] class-hnd exact EH-live spill-single-def <System.Collections.Concurrent.ConcurrentDictionary`2[System.Text.RegularExpressions.RegexCache+Key,System.Text.RegularExpressions.RegexCache+Node]>
+; V00 arg0 [V00,T32] ( 3, 1.50) struct (32) [rbp+0x10] do-not-enreg[S] single-def <System.Text.RegularExpressions.RegexCache+Key>
+; V01 arg1 [V01,T12] ( 3, 2.50) ref -> rbx class-hnd single-def <System.Text.RegularExpressions.Regex>
+; V02 loc0 [V02,T28] ( 4, 1.50) ref -> [rbp-0x88] class-hnd exact EH-live spill-single-def <System.Collections.Concurrent.ConcurrentDictionary`2[System.Text.RegularExpressions.RegexCache+Key,System.Text.RegularExpressions.RegexCache+Node]>
; V03 loc1 [V03 ] ( 5, 4 ) ubyte -> [rbp-0x30] do-not-enreg[X] addr-exposed ld-addr-op
;* V04 loc2 [V04 ] ( 0, 0 ) ref -> zero-ref class-hnd exact single-def <System.Text.RegularExpressions.RegexCache+Node>
-; V05 loc3 [V05,T36] ( 3, 1.50) ref -> rdi class-hnd exact single-def <System.Text.RegularExpressions.RegexCache+Node>
+; V05 loc3 [V05,T29] ( 3, 1.50) ref -> rdi class-hnd exact single-def <System.Text.RegularExpressions.RegexCache+Node>
; V06 loc4 [V06 ] ( 2, 1 ) ref -> [rbp-0x38] do-not-enreg[X] must-init addr-exposed ld-addr-op class-hnd <System.Text.RegularExpressions.RegexCache+Node>
-; V07 loc5 [V07,T12] ( 4, 5.50) int -> r12
-; V08 loc6 [V08,T13] ( 3, 5 ) ubyte -> [rbp-0x3C]
-; V09 loc7 [V09,T10] ( 10, 6.50) int -> [rbp-0x40]
-; V10 loc8 [V10,T11] ( 3, 6.50) long -> [rbp-0x48]
+; V07 loc5 [V07,T10] ( 4, 5.50) int -> r12
+; V08 loc6 [V08,T11] ( 3, 5 ) ubyte -> [rbp-0x3C]
+; V09 loc7 [V09,T08] ( 10, 6.50) int -> [rbp-0x40]
+; V10 loc8 [V10,T09] ( 3, 6.50) long -> [rbp-0x48]
; V11 loc9 [V11,T03] ( 5, 14.50) int -> [rbp-0x4C]
;* V12 loc10 [V12 ] ( 0, 0 ) int -> zero-ref
-; V13 loc11 [V13,T07] ( 3, 10 ) long -> rsi
+; V13 loc11 [V13,T06] ( 3, 10 ) long -> rsi
; V14 OutArgs [V14 ] ( 1, 1 ) struct (40) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace"
-; V15 tmp1 [V15,T08] ( 8, 8 ) ref -> r13 class-hnd exact single-def "NewObj constructor temp" <System.Text.RegularExpressions.RegexCache+Node>
-; V16 tmp2 [V16,T40] ( 3, 1.50) int -> registers
+; V15 tmp1 [V15,T07] ( 8, 8 ) ref -> r13 class-hnd exact single-def "NewObj constructor temp" <System.Text.RegularExpressions.RegexCache+Node>
+; V16 tmp2 [V16,T33] ( 3, 1.50) int -> registers
; V17 tmp3 [V17,T02] ( 6, 18 ) int -> registers
-; V18 tmp4 [V18,T30] ( 2, 2 ) ref -> rdi class-hnd exact single-def "dup spill" <System.Collections.Generic.List`1[System.Text.RegularExpressions.RegexCache+Node]>
-;* V19 tmp5 [V19 ] ( 0, 0 ) ref -> zero-ref class-hnd exact "Inlining Arg" <System.Collections.Generic.List`1[System.Text.RegularExpressions.RegexCache+Node]>
-;* V20 tmp6 [V20 ] ( 0, 0 ) ref -> zero-ref class-hnd exact "Inlining Arg" <System.Collections.Generic.List`1[System.Text.RegularExpressions.RegexCache+Node]>
-;* V21 tmp7 [V21 ] ( 0, 0 ) ref -> zero-ref class-hnd exact "Inlining Arg" <System.Collections.Generic.List`1[System.Text.RegularExpressions.RegexCache+Node]>
-; V22 tmp8 [V22,T18] ( 4, 3 ) int -> r13 "Inlining Arg"
-;* V23 tmp9 [V23 ] ( 0, 0 ) ref -> zero-ref class-hnd exact "Inlining Arg" <System.Random>
-; V24 tmp10 [V24,T19] ( 3, 3 ) ref -> rdi class-hnd exact single-def "Inlining Arg" <System.Collections.Generic.List`1[System.Text.RegularExpressions.RegexCache+Node]>
-;* V25 tmp11 [V25 ] ( 0, 0 ) ref -> zero-ref class-hnd exact "Inlining Arg" <System.Collections.Generic.List`1[System.Text.RegularExpressions.RegexCache+Node]>
-; V26 tmp12 [V26,T04] ( 4, 12 ) int -> [rbp-0x50] spill-single-def "Inlining Arg"
-;* V27 tmp13 [V27 ] ( 0, 0 ) ref -> zero-ref class-hnd exact "Inlining Arg" <System.Random>
-; V28 tmp14 [V28,T00] ( 3, 24 ) ref -> rsi class-hnd exact "Inlining Arg" <System.Collections.Generic.List`1[System.Text.RegularExpressions.RegexCache+Node]>
-; V29 tmp15 [V29,T20] ( 3, 3 ) ref -> rcx class-hnd exact single-def "Inlining Arg" <System.Collections.Generic.List`1[System.Text.RegularExpressions.RegexCache+Node]>
-;* V30 tmp16 [V30 ] ( 0, 0 ) ubyte -> zero-ref "Inline return value spill temp"
-; V31 tmp17 [V31,T34] ( 2, 2 ) struct (32) [rbp-0x70] do-not-enreg[S] must-init "Inlining Arg" <System.Text.RegularExpressions.RegexCache+Key>
-; V32 tmp18 [V32,T31] ( 2, 2 ) ref -> [rbp-0x90] class-hnd exact spill-single-def "Inlining Arg" <System.Collections.Concurrent.ConcurrentDictionary`2[System.Text.RegularExpressions.RegexCache+Key,System.Text.RegularExpressions.RegexCache+Node]>
-;* V33 tmp19 [V33 ] ( 0, 0 ) ref -> zero-ref ld-addr-op class-hnd "Inline ldloca(s) first use temp" <System.Text.RegularExpressions.RegexCache+Node>
-; V34 tmp20 [V34,T16] ( 4, 4 ) int -> rsi "Inlining Arg"
-; V35 tmp21 [V35,T15] ( 4, 4 ) ref -> r13 class-hnd exact single-def "Inlining Arg" <System.Collections.Generic.List`1[System.Text.RegularExpressions.RegexCache+Node]>
-; V36 tmp22 [V36,T32] ( 2, 2 ) ref -> rax class-hnd single-def "Inlining Arg" <System.__Canon>
-;* V37 tmp23 [V37 ] ( 0, 0 ) ref -> zero-ref class-hnd exact "Inlining Arg" <System.Collections.Generic.List`1[System.Text.RegularExpressions.RegexCache+Node]>
-; V38 tmp24 [V38,T09] ( 7, 7 ) ref -> rdi class-hnd exact single-def "Inlining Arg" <System.Collections.Generic.List`1[System.Text.RegularExpressions.RegexCache+Node]>
-; V39 tmp25 [V39,T37] ( 3, 1.50) ref -> rbx class-hnd single-def "Inline stloc first use temp" <System.Text.RegularExpressions.RegexCache+Node[]>
-; V40 tmp26 [V40,T27] ( 4, 2 ) int -> r14 "Inline stloc first use temp"
-;* V41 tmp27 [V41 ] ( 0, 0 ) ubyte -> zero-ref "Inline return value spill temp"
-; V42 tmp28 [V42,T21] ( 3, 3 ) ref -> [rbp-0x98] class-hnd exact spill-single-def "Inlining Arg" <System.Collections.Concurrent.ConcurrentDictionary`2[System.Text.RegularExpressions.RegexCache+Key,System.Text.RegularExpressions.RegexCache+Node]>
-;* V43 tmp29 [V43 ] ( 0, 0 ) struct ( 8) zero-ref ld-addr-op "Inline ldloca(s) first use temp" <System.Nullable`1[int]>
-; V44 tmp30 [V44,T33] ( 2, 2 ) ref -> [rbp-0xA0] class-hnd exact spill-single-def "impAppendStmt" <System.Collections.Concurrent.ConcurrentDictionary`2+Tables[System.Text.RegularExpressions.RegexCache+Key,System.__Canon]>
-; V45 tmp31 [V45 ] ( 2, 1 ) ref -> [rbp-0x78] do-not-enreg[X] must-init addr-exposed ld-addr-op class-hnd "Inline ldloca(s) first use temp" <System.Text.RegularExpressions.RegexCache+Node>
-;* V46 tmp32 [V46,T44] ( 0, 0 ) ubyte -> zero-ref "field V43.hasValue (fldOffset=0x0)" P-INDEP
-;* V47 tmp33 [V47,T45] ( 0, 0 ) int -> zero-ref "field V43.value (fldOffset=0x4)" P-INDEP
-; V48 tmp34 [V48,T46] ( 2, 0 ) ref -> rsi single-def "argument with side effect"
-; V49 tmp35 [V49,T22] ( 3, 3 ) ref -> rdi single-def "argument with side effect"
-; V50 tmp36 [V50,T23] ( 3, 3 ) ref -> rdi single-def "arr expr"
-; V51 tmp37 [V51,T47] ( 2, 0 ) ref -> rsi "argument with side effect"
-; V52 tmp38 [V52,T05] ( 3, 12 ) ref -> rdi "argument with side effect"
-; V53 tmp39 [V53,T01] ( 3, 24 ) ref -> rsi "arr expr"
-; V54 tmp40 [V54,T24] ( 3, 3 ) ref -> rcx single-def "arr expr"
-; V55 tmp41 [V55,T25] ( 3, 3 ) ref -> rax single-def "arr expr"
-; V56 tmp42 [V56,T26] ( 3, 3 ) struct ( 8) [rbp-0x80] do-not-enreg[SF] "by-value struct argument" <System.Nullable`1[int]>
-; V57 PSPSym [V57,T43] ( 1, 1 ) long -> [rbp-0xA8] do-not-enreg[V] "PSPSym"
-; V58 cse0 [V58,T28] ( 4, 2 ) int -> r13 "CSE #05: moderate"
-; V59 cse1 [V59,T06] ( 11, 10.50) ref -> r14 "CSE #04: aggressive"
-; V60 cse2 [V60,T17] ( 5, 3.50) ref -> r15 "CSE #01: moderate"
-; V61 cse3 [V61,T41] ( 3, 1.50) int -> rdi "CSE #03: conservative"
-; V62 cse4 [V62,T42] ( 2, 1 ) int -> rsi "CSE #10: conservative"
-; V63 cse5 [V63,T29] ( 4, 2 ) int -> rdi "CSE #07: conservative"
-; V64 cse6 [V64,T38] ( 3, 1.50) ref -> rdx "CSE #08: conservative"
+; V18 tmp4 [V18,T16] ( 3, 3 ) ref -> rdi class-hnd exact single-def "dup spill" <System.Collections.Generic.List`1[System.Text.RegularExpressions.RegexCache+Node]>
+; V19 tmp5 [V19,T15] ( 4, 3 ) int -> r13 "Inlining Arg"
+; V20 tmp6 [V20,T04] ( 4, 12 ) int -> [rbp-0x50] spill-single-def "Inlining Arg"
+;* V21 tmp7 [V21 ] ( 0, 0 ) ubyte -> zero-ref "Inline return value spill temp"
+;* V22 tmp8 [V22 ] ( 0, 0 ) struct (32) zero-ref do-not-enreg[S] "Inlining Arg" <System.Text.RegularExpressions.RegexCache+Key>
+;* V23 tmp9 [V23 ] ( 0, 0 ) ref -> zero-ref ld-addr-op class-hnd "Inline ldloca(s) first use temp" <System.Text.RegularExpressions.RegexCache+Node>
+; V24 tmp10 [V24,T14] ( 4, 4 ) int -> rdx "Inlining Arg"
+; V25 tmp11 [V25,T25] ( 2, 2 ) ref -> rdx class-hnd single-def "Inlining Arg" <System.__Canon>
+; V26 tmp12 [V26,T30] ( 3, 1.50) ref -> rbx class-hnd single-def "Inline stloc first use temp" <System.Text.RegularExpressions.RegexCache+Node[]>
+; V27 tmp13 [V27,T22] ( 4, 2 ) int -> r12 "Inline stloc first use temp"
+;* V28 tmp14 [V28 ] ( 0, 0 ) ubyte -> zero-ref "Inline return value spill temp"
+;* V29 tmp15 [V29 ] ( 0, 0 ) struct ( 8) zero-ref ld-addr-op "Inline ldloca(s) first use temp" <System.Nullable`1[int]>
+; V30 tmp16 [V30,T26] ( 2, 2 ) ref -> [rbp-0x90] class-hnd exact spill-single-def "impAppendStmt" <System.Collections.Concurrent.ConcurrentDictionary`2+Tables[System.Text.RegularExpressions.RegexCache+Key,System.__Canon]>
+; V31 tmp17 [V31 ] ( 2, 1 ) ref -> [rbp-0x58] do-not-enreg[X] must-init addr-exposed ld-addr-op class-hnd "Inline ldloca(s) first use temp" <System.Text.RegularExpressions.RegexCache+Node>
+;* V32 tmp18 [V32,T37] ( 0, 0 ) ubyte -> zero-ref "field V29.hasValue (fldOffset=0x0)" P-INDEP
+;* V33 tmp19 [V33,T38] ( 0, 0 ) int -> zero-ref "field V29.value (fldOffset=0x4)" P-INDEP
+; V34 tmp20 [V34,T39] ( 2, 0 ) ref -> rsi single-def "argument with side effect"
+; V35 tmp21 [V35,T17] ( 3, 3 ) ref -> rdi single-def "argument with side effect"
+; V36 tmp22 [V36,T18] ( 3, 3 ) ref -> rdi single-def "arr expr"
+; V37 tmp23 [V37,T40] ( 2, 0 ) ref -> rsi "argument with side effect"
+; V38 tmp24 [V38,T05] ( 3, 12 ) ref -> rdi "argument with side effect"
+; V39 tmp25 [V39,T00] ( 3, 24 ) ref -> rsi "arr expr"
+; V40 tmp26 [V40,T19] ( 3, 3 ) ref -> rcx single-def "arr expr"
+; V41 tmp27 [V41,T27] ( 2, 2 ) struct (32) [rbp-0x78] do-not-enreg[S] must-init single-def "argument with side effect" <System.Text.RegularExpressions.RegexCache+Key>
+; V42 tmp28 [V42,T20] ( 3, 3 ) ref -> rax single-def "arr expr"
+; V43 tmp29 [V43,T21] ( 3, 3 ) struct ( 8) [rbp-0x80] do-not-enreg[SF] "by-value struct argument" <System.Nullable`1[int]>
+; V44 PSPSym [V44,T36] ( 1, 1 ) long -> [rbp-0x98] do-not-enreg[V] "PSPSym"
+; V45 cse0 [V45,T23] ( 4, 2 ) int -> r13 "CSE #05: moderate"
+; V46 cse1 [V46,T01] ( 20, 18.50) ref -> r14 "CSE #04: aggressive"
+; V47 cse2 [V47,T13] ( 6, 4 ) ref -> r15 "CSE #01: moderate"
+; V48 cse3 [V48,T34] ( 3, 1.50) int -> rdi "CSE #03: conservative"
+; V49 cse4 [V49,T35] ( 2, 1 ) int -> rdi "CSE #10: conservative"
+; V50 cse5 [V50,T24] ( 4, 2 ) int -> rsi "CSE #07: moderate"
+; V51 cse6 [V51,T31] ( 3, 1.50) ref -> rdi "CSE #08: conservative"
;
-; Lcl frame size = 168
+; Lcl frame size = 152
G_M48688_IG01:
push rbp
push r15
push r14
push r13
push r12
push rbx
- sub rsp, 168
- lea rbp, [rsp+0xD0]
+ sub rsp, 152
+ lea rbp, [rsp+0xC0]
xor eax, eax
mov qword ptr [rbp-0x78], rax
vxorps xmm8, xmm8, xmm8
vmovdqu ymmword ptr [rbp-0x70], ymm8
vmovdqu ymmword ptr [rbp-0x50], ymm8
- mov qword ptr [rbp-0xA8], rsp
+ mov qword ptr [rbp-0x98], rsp
mov rbx, rdi
;; size=56 bbWeight=1 PerfScore 13.58
G_M48688_IG02:
mov rsi, 0xD1FFAB1E ; const ptr
mov r15, gword ptr [rsi]
mov rdx, r15
mov gword ptr [rbp-0x88], rdx
xor esi, esi
mov dword ptr [rbp-0x30], esi
;; size=28 bbWeight=1 PerfScore 4.75
G_M48688_IG03:
cmp byte ptr [rbp-0x30], 0
jne G_M48688_IG23
lea rsi, [rbp-0x30]
mov rdi, rdx
call System.Threading.Monitor:ReliableEnter(System.Object,byref)
mov rcx, 0xD1FFAB1E ; data for System.Text.RegularExpressions.RegexCache:s_maxCacheSize
cmp dword ptr [rcx], 0
je G_M48688_IG25
;; size=41 bbWeight=1 PerfScore 9.00
G_M48688_IG04:
lea rdi, [rsp]
lea rsi, [rbp+0x10]
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
movsq
movsq
mov rdi, r15
lea rsi, [rbp-0x38]
mov rax, 0xD1FFAB1E ; code for System.Collections.Concurrent.ConcurrentDictionary`2[System.Text.RegularExpressions.RegexCache+Key,System.__Canon]:TryGetValue(System.Text.RegularExpressions.RegexCache+Key,byref):ubyte:this
call [rax]System.Collections.Concurrent.ConcurrentDictionary`2[System.Text.RegularExpressions.RegexCache+Key,System.__Canon]:TryGetValue(System.Text.RegularExpressions.RegexCache+Key,byref):ubyte:this
test eax, eax
jne G_M48688_IG25
mov rdi, 0xD1FFAB1E ; const ptr
mov r14, gword ptr [rdi]
mov r13d, dword ptr [r14+0x10]
mov rdi, 0xD1FFAB1E ; data for System.Text.RegularExpressions.RegexCache:s_maxCacheSize
mov edi, dword ptr [rdi]
cmp r13d, edi
jne G_M48688_IG16
cmp edi, 30
jle SHORT G_M48688_IG05
mov r12d, 30
mov dword ptr [rbp-0x3C], 1
test r13d, r13d
jl G_M48688_IG20
mov rdi, 0xD1FFAB1E ; const ptr
mov rdi, gword ptr [rdi]
mov rdi, gword ptr [rdi+0x08]
mov esi, r13d
mov rcx, qword ptr [rdi]
mov rcx, qword ptr [rcx+0x40]
call [rcx+0x30]System.Random+ImplBase:Next(int):int:this
mov r13d, eax
mov eax, r13d
mov r13d, dword ptr [rbp-0x3C]
jmp SHORT G_M48688_IG06
;; size=177 bbWeight=0.50 PerfScore 20.88
G_M48688_IG05:
mov r12d, r13d
xor eax, eax
xor r13d, r13d
;; size=8 bbWeight=0.50 PerfScore 0.38
G_M48688_IG06:
- mov rdi, r14
- cmp eax, dword ptr [rdi+0x10]
+ cmp eax, dword ptr [r14+0x10]
jae G_M48688_IG22
- mov rdi, gword ptr [rdi+0x08]
+ mov rdi, gword ptr [r14+0x08]
cmp eax, dword ptr [rdi+0x08]
jae G_M48688_IG24
mov dword ptr [rbp-0x40], eax
mov esi, eax
mov rdi, gword ptr [rdi+8*rsi+0x10]
mov rcx, qword ptr [rdi+0x10]
mov qword ptr [rbp-0x48], rcx
mov dword ptr [rbp-0x4C], 1
cmp r12d, 1
jle G_M48688_IG13
- ;; size=60 bbWeight=0.50 PerfScore 9.38
+ ;; size=58 bbWeight=0.50 PerfScore 9.25
G_M48688_IG07:
test r13d, r13d
je SHORT G_M48688_IG09
;; size=5 bbWeight=4 PerfScore 5.00
G_M48688_IG08:
mov r8d, dword ptr [r14+0x10]
mov dword ptr [rbp-0x50], r8d
test r8d, r8d
jl G_M48688_IG21
mov rdi, 0xD1FFAB1E ; const ptr
mov rdi, gword ptr [rdi]
mov rdi, gword ptr [rdi+0x08]
mov esi, r8d
mov r8, qword ptr [rdi]
mov r8, qword ptr [r8+0x40]
call [r8+0x30]System.Random+ImplBase:Next(int):int:this
mov edi, eax
mov edx, dword ptr [rbp-0x4C]
jmp SHORT G_M48688_IG10
;; size=55 bbWeight=2 PerfScore 38.00
G_M48688_IG09:
mov edx, dword ptr [rbp-0x4C]
mov edi, edx
;; size=5 bbWeight=2 PerfScore 2.50
G_M48688_IG10:
- mov rsi, r14
- cmp edi, dword ptr [rsi+0x10]
+ cmp edi, dword ptr [r14+0x10]
jae G_M48688_IG22
- mov rsi, gword ptr [rsi+0x08]
+ mov rsi, gword ptr [r14+0x08]
cmp edi, dword ptr [rsi+0x08]
jae G_M48688_IG24
mov r8d, edi
mov rsi, gword ptr [rsi+8*r8+0x10]
mov rsi, qword ptr [rsi+0x10]
mov rcx, qword ptr [rbp-0x48]
cmp rsi, rcx
jge SHORT G_M48688_IG12
- ;; size=46 bbWeight=4 PerfScore 67.00
+ ;; size=44 bbWeight=4 PerfScore 66.00
G_M48688_IG11:
mov eax, edi
mov rcx, rsi
mov dword ptr [rbp-0x40], eax
;; size=8 bbWeight=2 PerfScore 3.00
G_M48688_IG12:
inc edx
cmp edx, r12d
mov dword ptr [rbp-0x4C], edx
mov qword ptr [rbp-0x48], rcx
jl G_M48688_IG07
;; size=18 bbWeight=4 PerfScore 14.00
G_M48688_IG13:
- mov rcx, r14
mov eax, dword ptr [rbp-0x40]
- cmp eax, dword ptr [rcx+0x10]
+ cmp eax, dword ptr [r14+0x10]
jae G_M48688_IG22
- mov gword ptr [rbp-0x90], r15
- mov rcx, gword ptr [rcx+0x08]
+ mov rcx, gword ptr [r14+0x08]
cmp eax, dword ptr [rcx+0x08]
jae G_M48688_IG24
mov dword ptr [rbp-0x40], eax
- mov esi, eax
- mov rcx, gword ptr [rcx+8*rsi+0x10]
- ;; size=45 bbWeight=0.50 PerfScore 7.75
+ mov edi, eax
+ mov rcx, gword ptr [rcx+8*rdi+0x10]
+ ;; size=36 bbWeight=0.50 PerfScore 7.12
G_M48688_IG14:
vmovdqu ymm0, ymmword ptr [rcx+0x18]
- vmovdqu ymmword ptr [rbp-0x70], ymm0
+ vmovdqu ymmword ptr [rbp-0x78], ymm0
;; size=10 bbWeight=0.50 PerfScore 3.00
G_M48688_IG15:
lea rdi, [rsp]
- lea rsi, [rbp-0x70]
+ lea rsi, [rbp-0x78]
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
movsq
movsq
+ mov rdi, r15
lea rsi, [rbp-0x38]
- mov rdi, gword ptr [rbp-0x90]
xor edx, edx
xor rcx, rcx
mov r8, 0xD1FFAB1E ; code for System.Collections.Concurrent.ConcurrentDictionary`2[System.Text.RegularExpressions.RegexCache+Key,System.__Canon]:TryRemoveInternal(System.Text.RegularExpressions.RegexCache+Key,byref,ubyte,System.__Canon):ubyte:this
call [r8]System.Collections.Concurrent.ConcurrentDictionary`2[System.Text.RegularExpressions.RegexCache+Key,System.__Canon]:TryRemoveInternal(System.Text.RegularExpressions.RegexCache+Key,byref,ubyte,System.__Canon):ubyte:this
mov rdi, r14
- mov edi, dword ptr [rdi+0x10]
- lea esi, [rdi-0x01]
- cmp esi, edi
+ mov esi, dword ptr [rdi+0x10]
+ lea edx, [rsi-0x01]
+ cmp edx, esi
jae G_M48688_IG22
- mov r13, r14
- mov rdx, gword ptr [r13+0x08]
- mov rax, rdx
- cmp esi, dword ptr [rax+0x08]
+ mov rdi, gword ptr [rdi+0x08]
+ mov rax, rdi
+ cmp edx, dword ptr [rax+0x08]
jae G_M48688_IG24
- mov rax, gword ptr [rax+8*rsi+0x10]
- mov r12d, dword ptr [rbp-0x40]
- cmp r12d, edi
+ mov rdx, gword ptr [rax+8*rdx+0x10]
+ mov r13d, dword ptr [rbp-0x40]
+ cmp r13d, esi
jae G_M48688_IG22
- mov rdi, rdx
- movsxd rsi, r12d
- mov rdx, rax
+ movsxd rsi, r13d
mov rax, 0xD1FFAB1E ; code for CORINFO_HELP_ARRADDR_ST
call [rax]CORINFO_HELP_ARRADDR_ST
- inc dword ptr [r13+0x14]
+ inc dword ptr [r14+0x14]
mov esi, dword ptr [r14+0x10]
dec esi
mov rdi, r14
mov rax, 0xD1FFAB1E ; code for System.Collections.Generic.List`1[System.__Canon]:RemoveAt(int):this
call [rax]System.Collections.Generic.List`1[System.__Canon]:RemoveAt(int):this
- ;; size=171 bbWeight=0.50 PerfScore 21.38
+ ;; size=158 bbWeight=0.50 PerfScore 20.62
G_M48688_IG16:
mov rdi, 0xD1FFAB1E ; System.Text.RegularExpressions.RegexCache+Node
call CORINFO_HELP_NEWSFAST
mov r13, rax
lea rdi, bword ptr [r13+0x18]
lea rsi, bword ptr [rbp+0x10]
call CORINFO_HELP_ASSIGN_BYREF
call CORINFO_HELP_ASSIGN_BYREF
movsq
movsq
lea rdi, bword ptr [r13+0x08]
mov rsi, rbx
call CORINFO_HELP_ASSIGN_REF
mov rdi, 0xD1FFAB1E ; data for System.Text.RegularExpressions.RegexCache:s_lastAccessed
mov rdi, gword ptr [rdi]
test rdi, rdi
je SHORT G_M48688_IG17
mov rdi, qword ptr [rdi+0x10]
inc rdi
mov qword ptr [r13+0x10], rdi
;; size=81 bbWeight=0.50 PerfScore 7.50
G_M48688_IG17:
mov rdi, 0xD1FFAB1E ; data for System.Text.RegularExpressions.RegexCache:s_lastAccessed
mov rsi, r13
call CORINFO_HELP_ASSIGN_REF
- mov rdi, r14
- inc dword ptr [rdi+0x14]
- mov rbx, gword ptr [rdi+0x08]
- mov r14d, dword ptr [rdi+0x10]
- mov esi, dword ptr [rbx+0x08]
- cmp esi, r14d
+ inc dword ptr [r14+0x14]
+ mov rbx, gword ptr [r14+0x08]
+ mov r12d, dword ptr [r14+0x10]
+ mov edi, dword ptr [rbx+0x08]
+ cmp edi, r12d
ja SHORT G_M48688_IG18
+ mov rdi, r14
mov rsi, r13
mov rax, 0xD1FFAB1E ; code for System.Collections.Generic.List`1[System.__Canon]:AddWithResize(System.__Canon):this
call [rax]System.Collections.Generic.List`1[System.__Canon]:AddWithResize(System.__Canon):this
jmp SHORT G_M48688_IG19
- ;; size=57 bbWeight=0.50 PerfScore 8.75
+ ;; size=58 bbWeight=0.50 PerfScore 8.75
G_M48688_IG18:
- lea esi, [r14+0x01]
- mov dword ptr [rdi+0x10], esi
- mov edi, r14d
+ lea edi, [r12+0x01]
+ mov dword ptr [r14+0x10], edi
+ mov edi, r12d
lea rdi, bword ptr [rbx+8*rdi+0x10]
mov rsi, r13
call CORINFO_HELP_ASSIGN_REF
- ;; size=23 bbWeight=0.50 PerfScore 2.00
+ ;; size=25 bbWeight=0.50 PerfScore 2.00
G_M48688_IG19:
- mov rdi, r15
- mov gword ptr [rbp-0x98], rdi
- mov rsi, gword ptr [rdi+0x08]
- mov gword ptr [rbp-0xA0], rsi
+ mov rsi, gword ptr [r15+0x08]
+ mov gword ptr [rbp-0x90], rsi
lea rdi, [rsp]
lea rsi, [rbp+0x10]
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
movsq
movsq
mov byte ptr [rbp-0x80], 0
xor edx, edx
mov dword ptr [rbp-0x7C], edx
- lea rdx, [rbp-0x78]
+ lea rdx, [rbp-0x58]
mov qword ptr [rsp+0x20], rdx
mov rdx, qword ptr [rbp-0x80]
- mov rsi, gword ptr [rbp-0xA0]
- mov rdi, gword ptr [rbp-0x98]
+ mov rdi, r15
+ mov rsi, gword ptr [rbp-0x90]
mov rcx, r13
xor r8d, r8d
mov r9d, 1
mov rax, 0xD1FFAB1E ; code for System.Collections.Concurrent.ConcurrentDictionary`2[System.Text.RegularExpressions.RegexCache+Key,System.__Canon]:TryAddInternal(System.Collections.Concurrent.ConcurrentDictionary`2+Tables[System.Text.RegularExpressions.RegexCache+Key,System.__Canon],System.Text.RegularExpressions.RegexCache+Key,System.Nullable`1[int],System.__Canon,ubyte,ubyte,byref):ubyte:this
call [rax]System.Collections.Concurrent.ConcurrentDictionary`2[System.Text.RegularExpressions.RegexCache+Key,System.__Canon]:TryAddInternal(System.Collections.Concurrent.ConcurrentDictionary`2+Tables[System.Text.RegularExpressions.RegexCache+Key,System.__Canon],System.Text.RegularExpressions.RegexCache+Key,System.Nullable`1[int],System.__Canon,ubyte,ubyte,byref):ubyte:this
xor rdi, rdi
- mov gword ptr [rbp-0x78], rdi
+ mov gword ptr [rbp-0x58], rdi
jmp SHORT G_M48688_IG25
- ;; size=132 bbWeight=0.50 PerfScore 14.12
+ ;; size=118 bbWeight=0.50 PerfScore 13.12
G_M48688_IG20:
mov edi, 0x23C6
mov rsi, 0xD1FFAB1E
call CORINFO_HELP_STRCNS
mov rsi, rax
mov edi, r13d
mov rax, 0xD1FFAB1E ; code for System.ArgumentOutOfRangeException:ThrowNegative[int](int,System.String)
call [rax]System.ArgumentOutOfRangeException:ThrowNegative[int](int,System.String)
int3
;; size=39 bbWeight=0 PerfScore 0.00
G_M48688_IG21:
mov edi, 0x23C6
mov rsi, 0xD1FFAB1E
call CORINFO_HELP_STRCNS
mov rsi, rax
mov edi, dword ptr [rbp-0x50]
mov rax, 0xD1FFAB1E ; code for System.ArgumentOutOfRangeException:ThrowNegative[int](int,System.String)
call [rax]System.ArgumentOutOfRangeException:ThrowNegative[int](int,System.String)
int3
;; size=39 bbWeight=0 PerfScore 0.00
G_M48688_IG22:
mov rax, 0xD1FFAB1E ; code for System.ThrowHelper:ThrowArgumentOutOfRange_IndexMustBeLessException()
call [rax]System.ThrowHelper:ThrowArgumentOutOfRange_IndexMustBeLessException()
int3
;; size=13 bbWeight=0 PerfScore 0.00
G_M48688_IG23:
mov rax, 0xD1FFAB1E ; code for System.Threading.Monitor:ThrowLockTakenException()
call [rax]System.Threading.Monitor:ThrowLockTakenException()
int3
;; size=13 bbWeight=0 PerfScore 0.00
G_M48688_IG24:
call CORINFO_HELP_RNGCHKFAIL
int3
;; size=6 bbWeight=0 PerfScore 0.00
G_M48688_IG25:
cmp byte ptr [rbp-0x30], 0
je SHORT G_M48688_IG27
;; size=6 bbWeight=1 PerfScore 3.00
G_M48688_IG26:
mov rdi, gword ptr [rbp-0x88]
call System.Threading.Monitor:Exit(System.Object)
;; size=12 bbWeight=0.50 PerfScore 1.00
G_M48688_IG27:
nop
;; size=1 bbWeight=1 PerfScore 0.25
G_M48688_IG28:
vzeroupper
- add rsp, 168
+ add rsp, 152
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
;; size=21 bbWeight=1 PerfScore 5.25
G_M48688_IG29:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 56
mov rbp, qword ptr [rdi+0x28]
mov qword ptr [rsp+0x28], rbp
- lea rbp, [rbp+0xD0]
+ lea rbp, [rbp+0xC0]
;; size=30 bbWeight=0 PerfScore 0.00
G_M48688_IG30:
cmp byte ptr [rbp-0x30], 0
je SHORT G_M48688_IG31
mov rdi, gword ptr [rbp-0x88]
call System.Threading.Monitor:Exit(System.Object)
;; size=18 bbWeight=0 PerfScore 0.00
G_M48688_IG31:
nop
;; size=1 bbWeight=0 PerfScore 0.00
G_M48688_IG32:
vzeroupper
add rsp, 56
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
;; size=18 bbWeight=0 PerfScore 0.00
-; Total bytes of code 1243, prolog size 56, PerfScore 261.46, instruction count 315, allocated bytes for code 1243 (MethodHash=894241cf) for method System.Text.RegularExpressions.RegexCache:Add(System.Text.RegularExpressions.RegexCache+Key,System.Text.RegularExpressions.Regex) (FullOpts)
+; Total bytes of code 1206, prolog size 56, PerfScore 257.96, instruction count 306, allocated bytes for code 1206 (MethodHash=894241cf) for method System.Text.RegularExpressions.RegexCache:Add(System.Text.RegularExpressions.RegexCache+Key,System.Text.RegularExpressions.Regex) (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/21030741f8010842819e5c68801617a2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Job completed in 20 minutes 18 seconds.
dotnet/runtime#108579
Diffs
Diffs
Artifacts:
The text was updated successfully, but these errors were encountered: