Re: Not auto-vectorization

2012-05-22 Thread Martin Nowak
GCC is good, it knows many tricks, it contains a lot of pattern matching code and other code to allow such vectorizations, and that C code is almost transparent & standard (restrict is standard, and I think __builtin_assume_aligned isn't too much hard to #define away when not available. And

Re: Not auto-vectorization

2012-05-22 Thread Andrew Wiley
On Tue, May 22, 2012 at 1:52 PM, bearophile wrote: > On Reddit they have linked an article that shows auto vectorization in GCC > 4.7: > > http://locklessinc.com/**articles/vectorize/ > > http://www.reddit.com/r/**programming/comments/tz6ml/** > autovect

Re: Not auto-vectorization

2012-05-22 Thread Denis Shelomovskij
22.05.2012 22:52, bearophile написал: How is the development of the D SIMD ops going? Are those efforts (maybe with the help of another higher level Phobos lib) going to avoid the silly problems shown in that article? So the question is: do we need `aligned(T)(T)` function? It can work like cu

Not auto-vectorization

2012-05-22 Thread bearophile
On Reddit they have linked an article that shows auto vectorization in GCC 4.7: http://locklessinc.com/articles/vectorize/ http://www.reddit.com/r/programming/comments/tz6ml/autovectorization_with_gcc_47/ GCC is good, it knows many tricks, it contains a lot of pattern matching code and other