https://issues.dlang.org/show_bug.cgi?id=17385

          Issue ID: 17385
           Summary: Too much commands
           Product: D
           Version: D2
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

https://goo.gl/WPlPB8

Why not:

int example.square(ref int)
 mov    DWORD PTR [rdi],0xb
 xor    eax,eax 
 ret

???

We can save 17 bytes. It's 68% of all the procedure binary... What's wrong?

--

Reply via email to