I'm not sure but after googling and experimenting furiousIy think that maybe there is no LLVM option to do this globally, that the floating point operations have to be tagged as 'fast' in the intermediate representation for this to happen. Which would mean the rust compiler would have to specifically support this. Which would be great if it did.
Yeah, ffast-math is a frontend (clang) type option. There's a few fast-math intrinsics you can experiment with. It doesn't always have the full vectorization effect (I have tried sum, which was fine, but dot product was open for manual improvements).
Oh that's great, I don't suppose there is any way to get the core library map/fold functions to use them though? Other than extending them with your own fastmap/fastfold etc?