SelectVsNoSelect

Created Diff never expires
14 removals
85 lines
16 additions
87 lines
; Assembly listing for method IDKEngine.Application:TestEntryPoint():int (FullOpts)
; Assembly listing for method IDKEngine.Application:TestEntryPoint():int (FullOpts)
; Emitting BLENDED_CODE for x64 + VEX on Windows
; Emitting BLENDED_CODE for x64 + VEX on Windows
; FullOpts code
; FullOpts code
; optimized code
; optimized code
; rbp based frame
; rbp based frame
; fully interruptible
; fully interruptible
; No PGO data
; No PGO data
; Final local variable assignments
; Final local variable assignments
;
;
; V00 loc0 [V00,T02] ( 4, 2 ) int -> [rbp-0x04] do-not-enreg[M] EH-live
; V00 loc0 [V00,T02] ( 3, 2 ) int -> [rbp-0x04] do-not-enreg[M] EH-live
; V01 loc1 [V01,T01] ( 2, 9 ) long -> rcx class-hnd exact single-def <int[]>
; V01 loc1 [V01,T01] ( 2, 9 ) long -> rcx class-hnd exact single-def <int[]>
;* V02 loc2 [V02 ] ( 0, 0 ) int -> zero-ref
;* V02 loc2 [V02 ] ( 0, 0 ) int -> zero-ref
; V03 OutArgs [V03 ] ( 1, 1 ) struct (32) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <UNNAMED>
; V03 OutArgs [V03 ] ( 1, 1 ) struct (32) [rsp+0x00] do-not-enreg[XS] addr-exposed "OutgoingArgSpace" <UNNAMED>
;* V04 tmp1 [V04 ] ( 0, 0 ) long -> zero-ref class-hnd exact "NewArr temp" <int[]>
;* V04 tmp1 [V04 ] ( 0, 0 ) long -> zero-ref class-hnd exact "NewArr temp" <int[]>
; V05 tmp2 [V05,T03] ( 3, 0 ) ref -> rcx class-hnd single-def "impSpillSpecialSideEff" <System.Exception>
; V05 tmp2 [V05,T03] ( 3, 0 ) ref -> rcx class-hnd single-def "impSpillSpecialSideEff" <System.Exception>
;* V06 tmp3 [V06 ] ( 0, 0 ) int -> zero-ref "spilling qmarkNull"
;* V06 tmp3 [V06 ] ( 0, 0 ) int -> zero-ref "spilling qmarkNull"
; V07 tmp4 [V07 ] ( 3, 3 ) struct (16) [rbp-0x18] do-not-enreg[XS] must-init addr-exposed "stack allocated array temp" <int[]>
; V07 tmp4 [V07 ] ( 3, 3 ) struct (16) [rbp-0x18] do-not-enreg[XS] must-init addr-exposed "stack allocated array temp" <int[]>
; V08 tmp5 [V08,T00] ( 6, 41 ) long -> rax "Widened IV V02"
; V08 tmp5 [V08,T00] ( 6, 41 ) long -> rax "Widened IV V02"
;
;
; Lcl frame size = 64
; Lcl frame size = 64


G_M14778_IG01: ;; offset=0x0000
G_M14778_IG01: ;; offset=0x0000
push rbp
push rbp
sub rsp, 64
sub rsp, 64
lea rbp, [rsp+0x40]
lea rbp, [rsp+0x40]
xor eax, eax
xor eax, eax
mov qword ptr [rbp-0x18], rax
mov qword ptr [rbp-0x18], rax
mov qword ptr [rbp-0x10], rax
mov qword ptr [rbp-0x10], rax
;; size=20 bbWeight=1 PerfScore 4.00
;; size=20 bbWeight=1 PerfScore 4.00
G_M14778_IG02: ;; offset=0x0014
G_M14778_IG02: ;; offset=0x0014
mov dword ptr [rbp-0x04], 99
mov dword ptr [rbp-0x04], 99
;; size=7 bbWeight=1 PerfScore 1.00
;; size=7 bbWeight=1 PerfScore 1.00
G_M14778_IG03: ;; offset=0x001B
G_M14778_IG03: ;; offset=0x001B
mov rcx, 0x7FF95B356D48 ; int[]
mov rcx, 0x7FF95B346D48 ; int[]
mov qword ptr [rbp-0x18], rcx
mov qword ptr [rbp-0x18], rcx
lea rcx, [rbp-0x18]
lea rcx, [rbp-0x18]
xor eax, eax
xor eax, eax
mov dword ptr [rcx+0x08], eax
mov dword ptr [rcx+0x08], eax
lea rcx, [rbp-0x18]
lea rcx, [rbp-0x18]
mov eax, 0x1FFFFFFF
mov eax, 0x1FFFFFFF
align [5 bytes for IG04]
align [5 bytes for IG04]
;; size=37 bbWeight=1 PerfScore 4.00
;; size=37 bbWeight=1 PerfScore 4.00
G_M14778_IG04: ;; offset=0x0040
G_M14778_IG04: ;; offset=0x0040
cmp eax, 0
cmp eax, 0
jae SHORT G_M14778_IG05
jae SHORT G_M14778_IG05
xor edx, edx
xor edx, edx
mov dword ptr [rcx+4*rax+0x10], edx
mov dword ptr [rcx+4*rax+0x10], edx
inc eax
inc eax
js SHORT G_M14778_IG04
js SHORT G_M14778_IG04
jmp SHORT G_M14778_IG06
jmp SHORT G_M14778_IG06
;; size=17 bbWeight=8 PerfScore 46.00
;; size=17 bbWeight=8 PerfScore 46.00
G_M14778_IG05: ;; offset=0x0051
G_M14778_IG05: ;; offset=0x0051
call CORINFO_HELP_RNGCHKFAIL
call CORINFO_HELP_RNGCHKFAIL
int3
int3
;; size=6 bbWeight=0 PerfScore 0.00
;; size=6 bbWeight=0 PerfScore 0.00
G_M14778_IG06: ;; offset=0x0057
G_M14778_IG06: ;; offset=0x0057
mov eax, dword ptr [rbp-0x04]
mov eax, dword ptr [rbp-0x04]
;; size=3 bbWeight=1 PerfScore 1.00
;; size=3 bbWeight=1 PerfScore 1.00
G_M14778_IG07: ;; offset=0x005A
G_M14778_IG07: ;; offset=0x005A
add rsp, 64
add rsp, 64
pop rbp
pop rbp
ret
ret
;; size=6 bbWeight=1 PerfScore 1.75
;; size=6 bbWeight=1 PerfScore 1.75
G_M14778_IG08: ;; offset=0x0060
G_M14778_IG08: ;; offset=0x0060
sub rsp, 40
sub rsp, 40
;; size=4 bbWeight=0 PerfScore 0.00
;; size=4 bbWeight=0 PerfScore 0.00
G_M14778_IG09: ;; offset=0x0064
G_M14778_IG09: ;; offset=0x0064
test rcx, rcx
test rcx, rcx
je SHORT G_M14778_IG10
jne SHORT G_M14778_IG12
mov rax, 0x7FF95BB5E4E8 ; System.IndexOutOfRangeException
mov edx, 100
cmp qword ptr [rcx], rax
cmovne edx, dword ptr [rbp-0x04]
mov dword ptr [rbp-0x04], edx
;; size=30 bbWeight=0 PerfScore 0.00
;; size=5 bbWeight=0 PerfScore 0.00
G_M14778_IG10: ;; offset=0x0082
G_M14778_IG10: ;; offset=0x0069
lea rax, G_M14778_IG06
lea rax, G_M14778_IG06
;; size=7 bbWeight=0 PerfScore 0.00
;; size=7 bbWeight=0 PerfScore 0.00
G_M14778_IG11: ;; offset=0x0089
G_M14778_IG11: ;; offset=0x0070
add rsp, 40
add rsp, 40
ret
ret
;; size=5 bbWeight=0 PerfScore 0.00
;; size=5 bbWeight=0 PerfScore 0.00
G_M14778_IG12: ;; offset=0x0075
mov rax, 0x7FF95BB4E4E8 ; System.IndexOutOfRangeException
cmp qword ptr [rcx], rax
jne SHORT G_M14778_IG10
mov dword ptr [rbp-0x04], 100
jmp SHORT G_M14778_IG10
;; size=24 bbWeight=0 PerfScore 0.00


; Total bytes of code 142, prolog size 20, PerfScore 57.75, instruction count 39, allocated bytes for code 142 (MethodHash=85c7c645) for method IDKEngine.Application:TestEntryPoint():int (FullOpts)
; Total bytes of code 141, prolog size 20, PerfScore 57.75, instruction count 39, allocated bytes for code 141 (MethodHash=85c7c645) for method IDKEngine.Application:TestEntryPoint():int (FullOpts)
; ============================================================
; ============================================================