public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/27855]  New: reassociation pass produces ~30% slower matrix multiplication code
@ 2006-06-01 11:34 uros at kss-loka dot si
  2006-06-01 15:26 ` [Bug target/27855] " pinskia at gcc dot gnu dot org
                   ` (35 more replies)
  0 siblings, 36 replies; 38+ messages in thread
From: uros at kss-loka dot si @ 2006-06-01 11:34 UTC (permalink / raw)
  To: gcc-bugs

The testcase from PR target/27827 shows another problem, this time with
-ffast-math. The runtime performance of -ffast-math code drops for ~30%.

The problem could be traced down to reassociation tree pass, because the
performance jumps back when "flag_unsafe_math_optimizations" switch is disabled
by changing every occurence in tree-ssa-reassoc.c with
(flag_unsafe_math_optimizations && 0).

To see the problem, -funsafe-math-optimizations should be added to MMFLAGS in
target/27827 example Makefile:

MM4FLAGS = $(GMMFLAGS) -funsafe-math-optimizations


Current mainline gcc produces code with following results:

-O -mfpmath=387

ALGORITHM     NB   REPS        TIME      MFLOPS
=========  =====  =====  ==========  ==========

atlasmm       60   1000       0.260     1663.04

-O -msse2 -mfpmath=sse

ALGORITHM     NB   REPS        TIME      MFLOPS
=========  =====  =====  ==========  ==========

atlasmm       60   1000       0.229     1890.47


gcc with disabled reassoc pass for floating point values:

-O -mfpmath=387

ALGORITHM     NB   REPS        TIME      MFLOPS
=========  =====  =====  ==========  ==========

atlasmm       60   1000       0.162     2664.87

-O -msse2 -mfpmath=sse

ALGORITHM     NB   REPS        TIME      MFLOPS
=========  =====  =====  ==========  ==========

atlasmm       60   1000       0.164     2633.15


-- 
           Summary: reassociation pass produces ~30% slower matrix
                    multiplication code
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: uros at kss-loka dot si
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
OtherBugsDependingO 27827
             nThis:


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


^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2010-05-22 18:17 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-01 11:34 [Bug tree-optimization/27855] New: reassociation pass produces ~30% slower matrix multiplication code uros at kss-loka dot si
2006-06-01 15:26 ` [Bug target/27855] " pinskia at gcc dot gnu dot org
2006-06-02 10:04 ` uros at kss-loka dot si
2006-06-02 10:19 ` pinskia at gcc dot gnu dot org
2006-06-02 23:20 ` steven at gcc dot gnu dot org
2006-06-03  2:11   ` Daniel Berlin
2006-06-03  2:11 ` dberlin at dberlin dot org
2006-06-03  2:38 ` pinskia at gcc dot gnu dot org
2006-06-03  2:50 ` pinskia at gcc dot gnu dot org
2006-06-03 23:49 ` steven at gcc dot gnu dot org
2006-06-05 15:57 ` amacleod at redhat dot com
2006-06-05 16:03 ` dberlin at gcc dot gnu dot org
2006-10-07 10:05 ` steven at gcc dot gnu dot org
2006-10-07 16:36 ` pinskia at gcc dot gnu dot org
2007-03-02 15:35 ` ubizjak at gmail dot com
2007-03-02 17:43 ` pinskia at gcc dot gnu dot org
2007-07-09 18:17 ` ubizjak at gmail dot com
2007-07-09 19:22 ` uros at gcc dot gnu dot org
2007-12-10 10:17 ` [Bug target/27855] [4.3 regression] " ubizjak at gmail dot com
2007-12-10 10:40 ` rguenth at gcc dot gnu dot org
2007-12-10 11:14 ` ubizjak at gmail dot com
2007-12-11  5:57 ` ubizjak at gmail dot com
2007-12-26  1:37 ` [Bug target/27855] [4.3 regression] reassociation causes the RA to be confused pinskia at gcc dot gnu dot org
2008-03-14 16:43 ` [Bug target/27855] [4.3/4.4 " rguenth at gcc dot gnu dot org
2008-06-06 14:58 ` rguenth at gcc dot gnu dot org
2008-08-27 22:03 ` jsm28 at gcc dot gnu dot org
2008-11-13 13:37 ` jakub at gcc dot gnu dot org
2008-11-13 14:54 ` ubizjak at gmail dot com
2008-11-13 14:59 ` ubizjak at gmail dot com
2009-01-24 10:20 ` rguenth at gcc dot gnu dot org
2009-02-04  7:47 ` bonzini at gnu dot org
2009-02-04  8:58 ` ubizjak at gmail dot com
2009-02-04 11:23 ` bonzini at gnu dot org
2009-04-16 22:26 ` [Bug target/27855] [4.3/4.4/4.5 " pinskia at gcc dot gnu dot org
2009-08-04 12:34 ` rguenth at gcc dot gnu dot org
2009-09-20 20:20 ` pinskia at gcc dot gnu dot org
2010-01-19 16:17 ` rguenth at gcc dot gnu dot org
2010-05-22 19:00 ` [Bug target/27855] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu 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).