This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] [autovect patch] Implement vectorization hints



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]