This is the mail archive of the gcc@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: Peeling loops at tree level?


Hello,

> > Do we (I suspect not) peel small loops at tree level yet?
> Btw. lno from g++ (GCC) 3.5-tree-ssa-lno 20040630 (merged 20040612)
> seems to do the trick:
> 
> ;; Function int bar(constVector<3>&) (_Z3barRK6VectorILi3EE)
> 
> int bar(constVector<3>&) (x)
> {
> [...]
> <bb 0>:
>   return *&x->val[2] + x->val[1] + x->val[0] + res;
> 
> }
> 
> So I guess we'll get this feature during further merge of lno?

indeed -- this will work once this lno branch merge patch

http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00325.html

is in and the optimization is enabled.

Zdenek


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