Vectorisation Intrinsics for DMD?

2011-02-06 Thread Peter Alexander
Is there any plan to add vectorisation intrinsics to DMD? I know that DMD generates vectorised instructions for array operations, but last time I checked, these were far from optimal for aligned float[4] objects. In fact, it appears to generate a function call for all vector operations

Re: Vectorisation Intrinsics for DMD?

2011-02-06 Thread Iain Buclaw
== Quote from Peter Alexander (peter.alexander...@gmail.com)'s article Is there any plan to add vectorisation intrinsics to DMD? I know that DMD generates vectorised instructions for array operations, but last time I checked, these were far from optimal for aligned float[4] objects. In fact

Re: Vectorisation Intrinsics for DMD?

2011-02-06 Thread spir
On 02/06/2011 05:01 PM, Peter Alexander wrote: Is there any plan to add vectorisation intrinsics to DMD? I know that DMD generates vectorised instructions for array operations, but last time I checked, these were far from optimal for aligned float[4] objects. In fact, it appears to generate

Re: Vectorisation Intrinsics for DMD?

2011-02-06 Thread Peter Alexander
On 6/02/11 6:31 PM, Iain Buclaw wrote: == Quote from Peter Alexander (peter.alexander...@gmail.com)'s article Is there any plan to add vectorisation intrinsics to DMD? I know that DMD generates vectorised instructions for array operations, but last time I checked, these were far from optimal

Re: Vectorisation Intrinsics for DMD?

2011-02-06 Thread Walter Bright
Peter Alexander wrote: Is there any plan to add vectorisation intrinsics to DMD? I know that DMD generates vectorised instructions for array operations, but last time I checked, these were far from optimal for aligned float[4] objects. In fact, it appears to generate a function call for all

Re: Vectorisation Intrinsics for DMD?

2011-02-06 Thread Brad Roberts
On 2/6/2011 11:48 AM, Walter Bright wrote: Peter Alexander wrote: Is there any plan to add vectorisation intrinsics to DMD? I know that DMD generates vectorised instructions for array operations, but last time I checked, these were far from optimal for aligned float[4] objects. In fact

Re: Vectorisation Intrinsics for DMD?

2011-02-06 Thread bearophile
Brad Roberts: Also hinted at in the above list.. I'd really like to explore how to get some of the runtime library functions to be inlineable. There's a lot of small functions that ought to be eligible, if exposed to the compiler as a candidate. Like the two (or more than two) needed to

Re: Vectorisation Intrinsics for DMD?

2011-02-06 Thread Andrei Alexandrescu
On 2/6/11 2:48 PM, Walter Bright wrote: Peter Alexander wrote: Is there any plan to add vectorisation intrinsics to DMD? I know that DMD generates vectorised instructions for array operations, but last time I checked, these were far from optimal for aligned float[4] objects. In fact

Re: Vectorisation Intrinsics for DMD?

2011-02-06 Thread Walter Bright
Andrei Alexandrescu wrote: Are those swizzling ops part of the topic? I'm keeping an open mind on that the moment! An open mind is an empty mind -- Mark Stroberg