[RFC] [autovect patch] Implement vectorization hints

Devang Patel dpatel@apple.com
Mon Feb 28 09:35:00 GMT 2005


On Feb 27, 2005, at 1:48 PM, Zdenek Dvorak wrote:

> Hello,
>> On Feb 27, 2005, at 1:22 PM, Zdenek Dvorak wrote:
>>> In particular the node that you take in the
>>> vect_pragma_lookup function may have been moved there by some code
>>> motion optimization from elsewhere.
>> That should not change info about node's source location (unless it is
>> generated by compiler).
> exactly.  So you will use information about  the original location,
> thus applying the pragma to a wrong loop, thus causing a
> misscompilation.

duh, I get it now :)

>> I do not disagree. This is not straight forward, but unless plan is to
>> attach pragma info with loop structures,
> This would be probably the best solution, although also not without 
> problems.

:)

I tinkered with this idea but gave up soon. I'll try again. I welcome 
any starting hints/suggestions so that I do not follow the same path 
and reach same conclusion again.

Thanks,
-
Devang



More information about the Gcc-patches mailing list