On Tue, Dec 20, 2011 at 2:23 PM, Rohit Arul Raj wrote:
> Hello All,
>
> With the code given below, i expected the ppc compiler (e500mc v4.6.2)
> to generate 'memset' zero call for loop initialization (at '-O3'),
> but it generates a loop.
>
> Case:1
>
> int a[18], b[18];
> foo () {
> int i;
>
>
Hello All,
With the code given below, i expected the ppc compiler (e500mc v4.6.2)
to generate 'memset' zero call for loop initialization (at '-O3'),
but it generates a loop.
Case:1
int a[18], b[18];
foo () {
int i;
for (i=0; i < 18; i++)
a[i] = 0;
}
Also based on the '-ftree-loop-