auto vectorization in gcc

Daniel Berlin dberlin@dberlin.org
Thu Jul 17 18:20:00 GMT 2003


On Thursday, July 17, 2003, at 1:48 PM, Richard Henderson wrote:

> On Thu, Jul 17, 2003 at 03:45:47PM +0300, Dorit Naishlos wrote:
>> (c) since the tree-level is machine independent, actual vectorization
>>     will take place in the RTL level
>
> I would think this would be false.  Just because the tree level
> representation is machine independent doesn't mean we can't do
> any target-specific transformations.
>
> The tree level is *more* capable than the rtl level at representing
> vector types (and thus operations).  I think all we need is some
> small amount of info from the target about vector widths and memory
> blocking, and then the transformation should happen at the tree level.
>
I agree completely.
Especially since it's a matter of just making tree nodes with a vector 
type, and performing standard tree ops on them.

IE PLUS_EXPR of two trees with types of V4SF_type_node should work just 
fine, and convert to the right vector RTL.

If it doesn't, we should make it work.

>
> r~



More information about the Gcc mailing list