[work on blas] fp-contract

Johan Engelen via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Thu Dec 31 05:07:47 PST 2015


On Thursday, 31 December 2015 at 04:32:27 UTC, Ilya wrote:
> Hi,
>
> Can fp-constract flag be added to LDC to allow auto fusion of 
> mull/add operations?
>
> Is it possible to make `fp-constract` a function attribute?

Clang implements the pragma `#pragma STDC FP_CONTRACT` (you can 
enable it per compound statement). I think it's good to do the 
same. This should be relatively simple to implement.

See: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/fp-contract-pragma.cpp?view=markup


More information about the digitalmars-d-ldc mailing list