public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/41741] -Os generates bigger code than -O2 for simple loops
       [not found] <bug-41741-4@http.gcc.gnu.org/bugzilla/>
@ 2012-08-16 10:35 ` segher at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: segher at gcc dot gnu.org @ 2012-08-16 10:35 UTC (permalink / raw)
  To: gcc-bugs

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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |segher at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> 2012-08-16 10:34:42 UTC ---
Current mainline does:

memset:
        addi 5,5,1
        li 9,0
        mtctr 5
        b .L2
.L3:
        stbx 4,3,9
        addi 9,9,1
.L2:
        bdnz .L3
        blr

So closing as fixed.


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

* [Bug middle-end/41741] -Os generates bigger code than -O2 for simple loops
  2009-10-18 13:49 [Bug middle-end/41741] New: " segher at kernel dot crashing dot org
@ 2009-10-18 13:53 ` rguenth at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-18 13:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-10-18 13:53 -------
I think that's the usual loop-header copying trade-off.  If you do it you
possibly increase code size, if you don't, you lose optimization - especially
on induction variables.


-- 


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


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

end of thread, other threads:[~2012-08-16 10:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-41741-4@http.gcc.gnu.org/bugzilla/>
2012-08-16 10:35 ` [Bug middle-end/41741] -Os generates bigger code than -O2 for simple loops segher at gcc dot gnu.org
2009-10-18 13:49 [Bug middle-end/41741] New: " segher at kernel dot crashing dot org
2009-10-18 13:53 ` [Bug middle-end/41741] " 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).