This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37221] GCC for Cell SPU produces poor code when there is load-after-store in different loops
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Aug 2008 22:04:27 -0000
- Subject: [Bug middle-end/37221] GCC for Cell SPU produces poor code when there is load-after-store in different loops
- References: <bug-37221-13884@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-08-24 22:04 -------
There are a couple of issues here I think. The first being that the loop:
for (j = 0; j < 4; j++)
arr[j] = mat2[i][j];
is not being unrolled.
If I specify -fpeel-loops, it is unrolled but then we don't SRA arr at all as
we unroll too late.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Component|c |middle-end
Ever Confirmed|0 |1
Keywords| |missed-optimization
Last reconfirmed|0000-00-00 00:00:00 |2008-08-24 22:04:27
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37221