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


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