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

Reply via email to