On Wednesday, 15 July 2015 at 22:42:05 UTC, Steven wrote:
I was trying to show someone how awesome Dlang was earlier, and how the vector operations are expected to take advantage of the CPU vector instructions, and was dumbstruck when dmd and gdc both failed to auto-vectorize a simple case. I've stripped it down to the bare minimum and loaded the example on the interactive compiler:

I'm not sure how the compilers handle auto-vectorization, but I found
http://dconf.org/2013/talks/evans_2.html
informative. It recommends not casting between float and simd types.

Reply via email to