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 Mar 7, 2005, at 6:36 AM, Richard Henderson wrote:



I'm not sure how to tie a pragma to the next language-level loop.

We'll definitely need language-level help for this. Consider


  #pragma doit
  for (i = start(); i < end; i++)

where start() expands inline and contains loops.  Either that
or we have to delay inlining from where we do presently.  Not
that that would be a bad thing necessarily...

Yup, this is what I meant when I said ..


As soon as one says,
User can put #pragma blah before the loop to give compiler hints...
"before" brings in lot of edge cases.

Another thing to consider is, the use of macros to hide various mundane things, e.g.
#pragma doit
FOR_EACH_BB (bb)
{
}


And FOR_EACH_BB can expand add few expressions just before 'for' loop.

-
Devang


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