Peeling loops at tree level?
Zdenek Dvorak
rakdver@atrey.karlin.mff.cuni.cz
Mon Sep 13 14:57:00 GMT 2004
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
More information about the Gcc
mailing list