[Issue 1149] Optimizer: obsolete array length loads, common subexpr. elimin. not working
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 23 04:31:32 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=1149
--- Comment #8 from bearophile_hugs at eml.cc 2012-02-23 04:31:27 PST ---
Better:
__Dmain comdat
L0: sub ESP,0Ch
mov ECX,offset FLAT:_D11TypeInfo_Ak6__initZ
push EBX
push ESI
lea EAX,8[ESP]
mov dword ptr 8[ESP],0
mov dword ptr 0Ch[ESP],0
push EAX
push 4
push ECX
call near ptr __d_arraysetlengthT
mov EBX,018h[ESP]
mov EDX,1
mov [EBX],EDX
mov ESI,018h[ESP]
mov 4[ESI],EDX
mov EAX,018h[ESP]
mov 8[EAX],EDX
mov ECX,018h[ESP]
xor EAX,EAX
mov 0Ch[ECX],EDX
add ESP,0Ch
pop ESI
pop EBX
add ESP,0Ch
ret
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list