Auto-Vectorization and array/vector operations
jmh530 via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 15 16:43:30 PDT 2015
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.
More information about the Digitalmars-d
mailing list