This is the mail archive of the gcc-bugs@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]

[Bug middle-end/37221] GCC for Cell SPU produces poor code when there is load-after-store in different loops



------- 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


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