Disappointing math performance compared to GDC

Gabor Mezo via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Wed Oct 8 06:15:31 PDT 2014


On Wednesday, 8 October 2014 at 11:29:30 UTC, Trass3r wrote:
> Try with '-O3 -release -vectorize-slp-aggressive -g 
> -pass-remarks-analysis="loop-vectorize|loop-unroll" 
> -pass-remarks=loop-unroll'
>
> Note that the D situation is a mess in general (correct me if 
> I'm wrong):
> * Never ever use std.math as you will get the insane 80-bit 
> functions.
> * core.math has some hacks to use llvm builtins but also mostly 
> using type real.
> * core.stdc.math supports all types but uses suffixes and maps 
> to C functions.
> * core.stdc.tgmath gets rid of the suffixes at least. Best way 
> imo to write code if you disregard auto-vectorization.
> * you can also use ldc.intrinsics to kill portability. Hello 
> C++.
>
> And there's no fast-math yet:
> https://github.com/ldc-developers/ldc/issues/722

I get:

Unknown command line argument 
'-pass-remarks-analysis=loop-vectorize|loop-unroll'
Unknown command line argument '-pass-remarks=loop-unroll'


More information about the digitalmars-d-ldc mailing list