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 Sun, Feb 27, 2005 at 11:22:12AM -0800, Zack Weinberg wrote:
> For things like #pragma STDC FP_CONTRACT OFF it's a little
> simpler, because the semantics are "has effect from point of
> appearance to end of immediately enclosing block", so the optimizers
> can just look for a PRAGMA_EXPR inside each lexical block.

Except that lexical blocks are explicit decomposed early.
We need to associate (or re-associate) this data with basic
blocks asap.

> 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...


r~


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