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


> One approach is to use loop structure to keep pragma info instead of 
> relying on source location only. However it does not provide much help 
> to answer above question.  And add possibility of GCC doing loop 
> distribution, loop fusion etc.. in future. Plus one additional 
> difficulty with using loop structure approach is the fact that loop 
> info is not maintained wire-to-wire. During gimplification, loop 
> structure is dismantled in favor of if-gotos. Various passes optimizes 
> GIMPLE before loop optimizer recreates loop. So question is - How to 
> map new loops to source level loops?

Just FYI, xlc associates the info with the loop in a loop table (the
frontend creates the initial loop table), and keeps the loop table up to
date forever onwards :)





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