Performance issue with @fastmath and vectorization

Kagamin via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Nov 14 02:48:34 PST 2016


On Saturday, 12 November 2016 at 15:44:28 UTC, deXtoRious wrote:
> I have not found any way to make LDC perform the same 
> optimizations as Clang's best case (simply static void, no weak 
> attribute) and have run out of ideas. Furthermore, I have no 
> idea why the aforementioned changes in the function declaration 
> affect the both optimizers in this way, or whether finer 
> control over vectorization/loop unrolling is possible in LDC. 
> Any thoughts?

LDC can compile to llvm bitcode, you can then generate object 
code from it with llc and its various options. AFAIK, LLVM 
equivalent of a private symbol is "hidden" attribute, you can try 
to apply that, though lto shouldn't be affected by it.


More information about the digitalmars-d-ldc mailing list