------- Comment #5 from tehila at il dot ibm dot com  2008-08-26 20:47 -------
(In reply to comment #3)
> The meaning here is to the second 
> for (j = 0; j < 4; j++)
> loop. 
> It's loop #4 in cunrolli pass.
> > cunrolli doesn't recognize # of iterations = 4.
> > I think it doesn't recognize it starts from 0.

We think the problem is that j=0 are somewhere before got hoisted into some
part above.
If I add 'printf' before the loop (i.e., after the if) the loop does get
unrolled and with SRA optimization the performance get improved.


-- 


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

Reply via email to