public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/28481]  New: regression from 3.x: 4.1.1 uses memory where it can use registers
@ 2006-07-25 14:44 vda dot linux at googlemail dot com
  2006-07-25 14:45 ` [Bug rtl-optimization/28481] " vda dot linux at googlemail dot com
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: vda dot linux at googlemail dot com @ 2006-07-25 14:44 UTC (permalink / raw)
  To: gcc-bugs

The attached test program uses 5 local variables and this fits into i386
available registers. gcc 3.4.3 manages to do it with -O3.

gcc-4.1.1 -O2 and -O3 are identical and both are worse than gcc-3.4.3 -O3:

# wc -l *.s
  1498 serpent343-O2.s
  1252 serpent343-O3.s <- gcc 3.4.3 is smaller!
  1313 serpent411-O2.s
  1313 serpent411-O3.s

gcc-4.1.1 -Os is better than -O3, but still a tiny bit worse than gcc-3.4.3:

# wc -l serpent343-O3.s serpent411-Os.s
 1252 serpent343-O3.s
 1275 serpent411-Os.s

# size serpent343-O3.o serpent411-Os.o
   3262       0       0    3262     cbe serpent343-O3.o
   3347       0       0    3347     d13 serpent411-Os.o

Additional ingo is in the testcase itself.

(btw does it make sense to include this into testsuite?)


-- 
           Summary: regression from 3.x: 4.1.1 uses memory where it can use
                    registers
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vda dot linux at googlemail dot com
 GCC build triplet: i386-pc-linux-gnu
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu


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


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

end of thread, other threads:[~2009-09-20 20:20 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-25 14:44 [Bug rtl-optimization/28481] New: regression from 3.x: 4.1.1 uses memory where it can use registers vda dot linux at googlemail dot com
2006-07-25 14:45 ` [Bug rtl-optimization/28481] " vda dot linux at googlemail dot com
2006-07-25 15:47 ` [Bug target/28481] " rguenth at gcc dot gnu dot org
2006-07-25 17:18 ` vda dot linux at googlemail dot com
2007-02-03 17:28 ` jsm28 at gcc dot gnu dot org
2007-02-05  5:17 ` mmitchel at gcc dot gnu dot org
2007-02-14  9:14 ` mmitchel at gcc dot gnu dot org
2007-07-22  0:02 ` vda dot linux at googlemail dot com
2007-07-22  0:10 ` vda dot linux at googlemail dot com
2008-07-04 19:37 ` [Bug target/28481] [4.2/4.3/4.4 Regression] " jsm28 at gcc dot gnu dot org
2008-07-04 20:33 ` vda dot linux at googlemail dot com
2008-07-04 20:38 ` vda dot linux at googlemail dot com
2008-07-04 20:48 ` vda dot linux at googlemail dot com
2008-09-20 15:07 ` rguenth at gcc dot gnu dot org
2009-02-04 11:24 ` [Bug target/28481] [4.2/4.3/4.4 Regression] " bonzini at gnu dot org
2009-03-31 19:40 ` [Bug target/28481] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:36 ` rguenth at gcc dot gnu dot org
2009-09-20 20:20 ` pinskia 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).