SIMD benchmark

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Jan 16 09:57:14 PST 2012


On 1/16/12 11:32 AM, Michel Fortin wrote:
> Andrei's idea could be valid as an optimization when the compiler can
> see that all the operations can be performed with SIMD ops. In this
> particular case: if test1a(a) is inlined. But it can't work if the
> float[4] value crosses a function's boundary.

In this case it's the exact contrary: the float[4] and the operation are 
both local to the function. So it all depends on the inlining of the 
dummy functions that follows. No?


Andrei


More information about the Digitalmars-d mailing list