[Issue 16605] core.simd generates slow/irrelevant code

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Oct 8 05:13:20 PDT 2016


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

--- Comment #4 from Malte Kießling <malte.kiessling at mkalte.me> ---
(In reply to b2.temp from comment #3)
> (In reply to Malte Kießling from comment #1)
> > asm.dlang.org example that shows this: https://goo.gl/wVQjQh
> 
> Unfortunately this report is only based on the backend production with the
> switch "-release", so it just remove the assertions!
> 
> You should retry with "-release -O -boundscheck=off"

Woops i see. With "-release -O -boundscheck=off" i get the following:
****
movaps xmm4,XMMWORD PTR [rip+0x0]        # 4c <void example.doStuff()+0x4c>
 movaps xmm0,XMMWORD PTR [rsp]
 addps  xmm0,xmm4
 movaps XMMWORD PTR [rsp],xmm0
 movaps xmm1,XMMWORD PTR [rsp+0x10]
 movaps xmm2,XMMWORD PTR [rsp]
 addps  xmm2,xmm1
 movaps XMMWORD PTR [rsp],xmm2
 movaps xmm3,XMMWORD PTR [rsp]
 movaps xmm4,XMMWORD PTR [rsp+0x10]
 addps  xmm4,xmm3
 movaps XMMWORD PTR [rsp+0x10],xmm4
****

Wich is the same.

--


More information about the Digitalmars-d-bugs mailing list