[Bug tree-optimization/20643] [4.0/4.1/4.2 Regression] Tree loop optimizer does worse job than RTL loop optimizer

anemo at mba dot ocn dot ne dot jp gcc-bugzilla@gcc.gnu.org
Sun Jul 16 13:21:00 GMT 2006



------- Comment #11 from anemo at mba dot ocn dot ne dot jp  2006-07-16 13:21 -------
I have a similer optimization problem with this tiny function.

void foo(int *a)
{
        int i;
        for (i = 0; i < 100; i++)
                a[0] += a[1];
}

All gcc 4.x I tried generate load and store in inner loop.
On http://gcc.gnu.org/ml/gcc/2006-07/msg00282.html, I posted some results.
Is this a same probelm?  If not, I should file another bug report.  Thank you.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20643



More information about the Gcc-bugs mailing list