public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/23845] New: missed strength reduction costs performance
@ 2005-09-13  0:06 tprince at computer dot org
  2005-09-13  0:09 ` [Bug middle-end/23845] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: tprince at computer dot org @ 2005-09-13  0:06 UTC (permalink / raw)
  To: gcc-bugs

Dictation of strength reduction in source is required for adequate performance
on this target.  The same source "optimization" is counter-productive for ia32.

This is a portion of the diff file between 2 versions of
libgfortran/generated/matmul_r8.c.

              for (n = 0; n < count; n++)
                {
!                 abase_n = abase + n * aystride;
                  sum += abase_n[x] * bbase_y[n];
                  sum1 += abase_n[x+1] * bbase_y[n];
--- 199,208 ----
            {
              rtype_name sum = 0, sum1 = 0;
+             index_type nay = 0;
              for (n = 0; n < count; n++)
                {
!                 /* FIXME:  gcc ought to strength reduce from n * aystride */
!                 abase_n = abase + nay;
!                 nay += aystride;
                  sum += abase_n[x] * bbase_y[n];
                  sum1 += abase_n[x+1] * bbase_y[n];

-- 
           Summary: missed strength reduction costs performance
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tprince at computer dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: ia64-unknown-linux-gnu
  GCC host triplet: ia64-unknown-linux-gnu
GCC target triplet: ia64-unknown-linux-gnu


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


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <bug-23845-33@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-07-29 20:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-13  0:06 [Bug c/23845] New: missed strength reduction costs performance tprince at computer dot org
2005-09-13  0:09 ` [Bug middle-end/23845] " pinskia at gcc dot gnu dot org
2005-09-13  0:13 ` tprince at computer dot org
2005-09-13  2:13 ` pinskia at gcc dot gnu dot org
2005-09-13 14:50 ` pinskia at gcc dot gnu dot org
2005-09-13 18:30 ` rguenth at gcc dot gnu dot org
2005-09-13 23:16 ` tprince at computer dot org
     [not found] <bug-23845-33@http.gcc.gnu.org/bugzilla/>
2007-07-29 20:58 ` tprince at computer dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).